Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
try to stabilize Test_Test_Timeout
  • Loading branch information
ReneWerner87 committed Aug 2, 2022
1 parent 7108b44 commit 1cca495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app_test.go
Expand Up @@ -1169,11 +1169,11 @@ func Test_Test_Timeout(t *testing.T) {
utils.AssertEqual(t, 200, resp.StatusCode, "Status code")

app.Get("timeout", func(c *Ctx) error {
time.Sleep(100 * time.Millisecond)
time.Sleep(200 * time.Millisecond)
return nil
})

_, err = app.Test(httptest.NewRequest(MethodGet, "/timeout", nil), 50)
_, err = app.Test(httptest.NewRequest(MethodGet, "/timeout", nil), 20)
utils.AssertEqual(t, true, err != nil, "app.Test(req)")
}

Expand Down

0 comments on commit 1cca495

Please sign in to comment.