Skip to content

Commit

Permalink
🧹 tidy up: fix linter errors for tests (gofiber#2102)
Browse files Browse the repository at this point in the history
  • Loading branch information
efectn authored Sep 19, 2022
1 parent 45229ed commit 305bb07
Show file tree
Hide file tree
Showing 5 changed files with 181 additions and 80 deletions.
5 changes: 3 additions & 2 deletions app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ func Benchmark_App_ETag_Weak(b *testing.B) {
app := New()
c := app.AcquireCtx(&fasthttp.RequestCtx{})
defer app.ReleaseCtx(c)
c.Send([]byte("Hello, World!"))
utils.AssertEqual(b, nil, c.Send([]byte("Hello, World!")))
for n := 0; n < b.N; n++ {
setETag(c, true)
}
Expand Down Expand Up @@ -1440,7 +1440,8 @@ func Test_App_New_Test_Parallel(t *testing.T) {
t.Run("Test_App_New_Test_Parallel_1", func(t *testing.T) {
t.Parallel()
app := New(Config{Immutable: true})
app.Test(httptest.NewRequest("GET", "/", nil))
_, err := app.Test(httptest.NewRequest("GET", "/", nil))
utils.AssertEqual(t, nil, err)
})
t.Run("Test_App_New_Test_Parallel_2", func(t *testing.T) {
t.Parallel()
Expand Down
Loading

0 comments on commit 305bb07

Please sign in to comment.