aboutsummaryrefslogtreecommitdiff
path: root/http_test.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2023-02-09 10:29:28 +0200
committerGravatar GitHub <noreply@github.com> 2023-02-09 09:29:28 +0100
commitc0c5f9cd387c3b450ba24cbe364b44a65d9eb269 (patch)
tree3d321c0edf20a6789ef34cb494f59936ecc53caa /http_test.go
parentoptimized b2s function (#1483) (diff)
downloadfasthttp-c0c5f9cd387c3b450ba24cbe364b44a65d9eb269.tar.gz
fasthttp-c0c5f9cd387c3b450ba24cbe364b44a65d9eb269.tar.bz2
fasthttp-c0c5f9cd387c3b450ba24cbe364b44a65d9eb269.zip
doc,test: correct typos (#1484)
Diffstat (limited to 'http_test.go')
-rw-r--r--http_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/http_test.go b/http_test.go
index ba5d675..0cc1fef 100644
--- a/http_test.go
+++ b/http_test.go
@@ -1750,7 +1750,7 @@ func TestRequestWriteRequestURINoHost(t *testing.T) {
t.Fatalf("unexpected error: %v", err)
}
if err := bw.Flush(); err != nil {
- t.Fatalf("unexepcted error: %v", err)
+ t.Fatalf("unexpected error: %v", err)
}
var req1 Request
@@ -2382,7 +2382,7 @@ func TestReadBodyChunked(t *testing.T) {
// big body
testReadBodyChunked(t, 3*1024*1024)
- // smaler body after big one
+ // smaller body after big one
testReadBodyChunked(t, 12343)
}
@@ -2762,7 +2762,7 @@ func TestResponseImmediateHeaderFlushFixedLength(t *testing.T) {
}
if strings.Contains(w.String(), "xxx") {
- t.Fatalf("Did not expext body to be written yet")
+ t.Fatalf("Did not expect body to be written yet")
}
<-cb
@@ -2844,7 +2844,7 @@ func TestResponseImmediateHeaderFlushChunked(t *testing.T) {
}
if strings.Contains(w.String(), "xxx") {
- t.Fatalf("Did not expext body to be written yet")
+ t.Fatalf("Did not expect body to be written yet")
}
<-cb