From 398e2bb5b4df6caf90c33775e1a88ce7a496a8c0 Mon Sep 17 00:00:00 2001 From: gaowenju Date: Wed, 21 Aug 2024 15:46:27 +0800 Subject: [PATCH] test: add more waiting time for server --- pkg/app/server/hertz_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/app/server/hertz_test.go b/pkg/app/server/hertz_test.go index d20db2f96..77f359593 100644 --- a/pkg/app/server/hertz_test.go +++ b/pkg/app/server/hertz_test.go @@ -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)