aboutsummaryrefslogtreecommitdiff
path: root/server_test.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2023-03-06 17:55:21 +0200
committerGravatar GitHub <noreply@github.com> 2023-03-06 16:55:21 +0100
commit498a814fbf67e02eb8365e62530938894169ac64 (patch)
treed6dbcf8e96f203e75b7e2508273ec7e9c99b98a4 /server_test.go
parenttest: use Fprintf to simplify writing headers (#1510) (diff)
downloadfasthttp-498a814fbf67e02eb8365e62530938894169ac64.tar.gz
fasthttp-498a814fbf67e02eb8365e62530938894169ac64.tar.bz2
fasthttp-498a814fbf67e02eb8365e62530938894169ac64.zip
test: fix typos in function, error message, comment (#1512)
Diffstat (limited to 'server_test.go')
-rw-r--r--server_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/server_test.go b/server_test.go
index 62e6eec..5400460 100644
--- a/server_test.go
+++ b/server_test.go
@@ -384,7 +384,7 @@ func TestServerName(t *testing.T) {
},
}
- getReponse := func() []byte {
+ getResponse := func() []byte {
rw := &readWriter{}
rw.r.WriteString("GET / HTTP/1.1\r\nHost: google.com\r\n\r\n")
@@ -400,7 +400,7 @@ func TestServerName(t *testing.T) {
return resp
}
- resp := getReponse()
+ resp := getResponse()
if !bytes.Contains(resp, []byte("\r\nServer: "+defaultServerName+"\r\n")) {
t.Fatalf("Unexpected response %q expected Server: "+defaultServerName, resp)
}
@@ -412,7 +412,7 @@ func TestServerName(t *testing.T) {
Name: "foobar",
}
- resp = getReponse()
+ resp = getResponse()
if !bytes.Contains(resp, []byte("\r\nServer: foobar\r\n")) {
t.Fatalf("Unexpected response %q expected Server: foobar", resp)
}
@@ -425,7 +425,7 @@ func TestServerName(t *testing.T) {
NoDefaultDate: true,
}
- resp = getReponse()
+ resp = getResponse()
if bytes.Contains(resp, []byte("\r\nServer: ")) {
t.Fatalf("Unexpected response %q expected no Server header", resp)
}