aboutsummaryrefslogtreecommitdiff
path: root/fs_test.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2023-02-13 04:43:44 +0200
committerGravatar GitHub <noreply@github.com> 2023-02-13 10:43:44 +0800
commite15a810a981cc45928acefd70c4a295c9aeaeed5 (patch)
tree10625a06cddc417a6842f70b841faad1d9642d30 /fs_test.go
parentdocs: replace links to golang.org with go.dev (#1489) (diff)
downloadfasthttp-e15a810a981cc45928acefd70c4a295c9aeaeed5.tar.gz
fasthttp-e15a810a981cc45928acefd70c4a295c9aeaeed5.tar.bz2
fasthttp-e15a810a981cc45928acefd70c4a295c9aeaeed5.zip
docs: fix grammar issues and typos in comments (#1492)
Diffstat (limited to 'fs_test.go')
-rw-r--r--fs_test.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/fs_test.go b/fs_test.go
index 7e81ee6..334d0b7 100644
--- a/fs_test.go
+++ b/fs_test.go
@@ -111,7 +111,7 @@ func TestPathNotFoundFunc(t *testing.T) {
}
func TestServeFileHead(t *testing.T) {
- // This test can't run parallel as files in / might by changed by other tests.
+ // This test can't run parallel as files in / might be changed by other tests.
var ctx RequestCtx
var req Request
@@ -199,7 +199,7 @@ func (pw pureWriter) Write(p []byte) (nn int, err error) {
}
func TestServeFileCompressed(t *testing.T) {
- // This test can't run parallel as files in / might by changed by other tests.
+ // This test can't run parallel as files in / might be changed by other tests.
var ctx RequestCtx
ctx.Init(&Request{}, nil, nil)
@@ -265,7 +265,7 @@ func TestServeFileCompressed(t *testing.T) {
}
func TestServeFileUncompressed(t *testing.T) {
- // This test can't run parallel as files in / might by changed by other tests.
+ // This test can't run parallel as files in / might be changed by other tests.
var ctx RequestCtx
var req Request
@@ -298,7 +298,7 @@ func TestServeFileUncompressed(t *testing.T) {
}
func TestFSByteRangeConcurrent(t *testing.T) {
- // This test can't run parallel as files in / might by changed by other tests.
+ // This test can't run parallel as files in / might be changed by other tests.
stop := make(chan struct{})
defer close(stop)
@@ -332,7 +332,7 @@ func TestFSByteRangeConcurrent(t *testing.T) {
}
func TestFSByteRangeSingleThread(t *testing.T) {
- // This test can't run parallel as files in / might by changed by other tests.
+ // This test can't run parallel as files in / might be changed by other tests.
stop := make(chan struct{})
defer close(stop)
@@ -475,7 +475,7 @@ func testParseByteRangeError(t *testing.T, v string, contentLength int) {
}
func TestFSCompressConcurrent(t *testing.T) {
- // Don't run this test on Windows, the Windows Github actions are to slow and timeout too often.
+ // Don't run this test on Windows, the Windows GitHub actions are too slow and timeout too often.
if runtime.GOOS == "windows" {
t.SkipNow()
}
@@ -517,7 +517,7 @@ func TestFSCompressConcurrent(t *testing.T) {
}
func TestFSCompressSingleThread(t *testing.T) {
- // This test can't run parallel as files in / might by changed by other tests.
+ // This test can't run parallel as files in / might be changed by other tests.
stop := make(chan struct{})
defer close(stop)
@@ -617,7 +617,7 @@ func testFSCompress(t *testing.T, h RequestHandler, filePath string) {
}
func TestFSHandlerSingleThread(t *testing.T) {
- // This test can't run parallel as files in / might by changed by other tests.
+ // This test can't run parallel as files in / might be changed by other tests.
requestHandler := FSHandler(".", 0)
@@ -639,7 +639,7 @@ func TestFSHandlerSingleThread(t *testing.T) {
}
func TestFSHandlerConcurrent(t *testing.T) {
- // This test can't run parallel as files in / might by changed by other tests.
+ // This test can't run parallel as files in / might be changed by other tests.
requestHandler := FSHandler(".", 0)
@@ -787,7 +787,7 @@ func testFileExtension(t *testing.T, path string, compressed bool, compressedFil
}
func TestServeFileContentType(t *testing.T) {
- // This test can't run parallel as files in / might by changed by other tests.
+ // This test can't run parallel as files in / might be changed by other tests.
var ctx RequestCtx
var req Request