aboutsummaryrefslogtreecommitdiff
path: root/client_unix_test.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2023-02-10 15:34:49 +0200
committerGravatar GitHub <noreply@github.com> 2023-02-10 21:34:49 +0800
commitf84e2346ba6209d0527234bd38d736d2bf5052c0 (patch)
tree089fe472a2980d3e7274f581c0c29979a2c3c8de /client_unix_test.go
parentAdd missing fasthttp prefix in example usage (#1487) (diff)
downloadfasthttp-f84e2346ba6209d0527234bd38d736d2bf5052c0.tar.gz
fasthttp-f84e2346ba6209d0527234bd38d736d2bf5052c0.tar.bz2
fasthttp-f84e2346ba6209d0527234bd38d736d2bf5052c0.zip
Rename unexported funcs, vars to match common Go (#1488)
See https://github.com/golang/go/wiki/CodeReviewComments#initialisms and https://go.dev/doc/effective_go#mixed-caps
Diffstat (limited to 'client_unix_test.go')
-rw-r--r--client_unix_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/client_unix_test.go b/client_unix_test.go
index 380f909..21f4ced 100644
--- a/client_unix_test.go
+++ b/client_unix_test.go
@@ -51,7 +51,7 @@ func TestRstConnResponseWhileSending(t *testing.T) {
}
}()
- svrUrl := "http://" + srv.Addr().String()
+ srvURL := "http://" + srv.Addr().String()
client := HostClient{Addr: srv.Addr().String()}
for i := 0; i < 100; i++ {
@@ -62,7 +62,7 @@ func TestRstConnResponseWhileSending(t *testing.T) {
req.Header.SetMethod("POST")
req.SetBodyStream(strings.NewReader(payload), len(payload))
- req.SetRequestURI(svrUrl)
+ req.SetRequestURI(srvURL)
err = client.Do(req, resp)
if err != nil {
@@ -113,7 +113,7 @@ func TestRstConnClosedWithoutResponse(t *testing.T) {
}
}()
- svrUrl := "http://" + srv.Addr().String()
+ srvURL := "http://" + srv.Addr().String()
client := HostClient{Addr: srv.Addr().String()}
for i := 0; i < 100; i++ {
@@ -124,7 +124,7 @@ func TestRstConnClosedWithoutResponse(t *testing.T) {
req.Header.SetMethod("POST")
req.SetBodyStream(strings.NewReader(payload), len(payload))
- req.SetRequestURI(svrUrl)
+ req.SetRequestURI(srvURL)
err = client.Do(req, resp)