Skip to content

Commit 1cca495

Browse files
committed
try to stabilize Test_Test_Timeout
1 parent 7108b44 commit 1cca495

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,11 +1169,11 @@ func Test_Test_Timeout(t *testing.T) {
11691169
utils.AssertEqual(t, 200, resp.StatusCode, "Status code")
11701170

11711171
app.Get("timeout", func(c *Ctx) error {
1172-
time.Sleep(100 * time.Millisecond)
1172+
time.Sleep(200 * time.Millisecond)
11731173
return nil
11741174
})
11751175

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

0 commit comments

Comments
 (0)