aboutsummaryrefslogtreecommitdiff
path: root/server_test.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <Oleksandr_Redko@epam.com> 2023-06-13 16:18:59 +0300
committerGravatar GitHub <noreply@github.com> 2023-06-13 15:18:59 +0200
commitffdf59d04ca2f02556308d60d37b8e77ea04484c (patch)
treecad591ac557fce7673b2c7d52a6863c7694b4e37 /server_test.go
parentadd DisableSpecialHeaders option (#1573) (diff)
downloadfasthttp-ffdf59d04ca2f02556308d60d37b8e77ea04484c.tar.gz
fasthttp-ffdf59d04ca2f02556308d60d37b8e77ea04484c.tar.bz2
fasthttp-ffdf59d04ca2f02556308d60d37b8e77ea04484c.zip
Enable gofumpt linter; format code `gofumpt -w .` (#1576)v1.48.0
Diffstat (limited to 'server_test.go')
-rw-r--r--server_test.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/server_test.go b/server_test.go
index d8f6d65..e22da4e 100644
--- a/server_test.go
+++ b/server_test.go
@@ -1727,6 +1727,7 @@ func TestSetStandardFormValueFunc(t *testing.T) {
t.Fatalf("unexpected value %q. Expecting %q", v, "port")
}
}
+
func TestRequestCtxUserValue(t *testing.T) {
t.Parallel()
@@ -2082,7 +2083,8 @@ func TestServeConnKeepRequestAndResponseUntilResetUserValues(t *testing.T) {
resultRespStr = closerCtx.Response.String()
return nil
- }})
+ },
+ })
})
if err != nil {
t.Errorf("unexpected error in ServeConn: %v", err)
@@ -2178,7 +2180,8 @@ func TestServeConnHijackResetUserValues(t *testing.T) {
close(ch)
return nil
- }},
+ },
+ },
)
})
if err != nil {