Skip to content

Commit

Permalink
test: add more waiting time for server
Browse files Browse the repository at this point in the history
  • Loading branch information
welkeyever committed Aug 21, 2024
1 parent dc5dbd4 commit 398e2bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/server/hertz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func TestServer_Run(t *testing.T) {
ctx.Redirect(consts.StatusMovedPermanently, []byte("http://127.0.0.1:8899/test"))
})
go hertz.Run()
time.Sleep(100 * time.Microsecond)
time.Sleep(1 * time.Second)
resp, err := http.Get("http://127.0.0.1:8899/test")
assert.Nil(t, err)
assert.DeepEqual(t, consts.StatusOK, resp.StatusCode)
Expand Down

0 comments on commit 398e2bb

Please sign in to comment.