From 6de6b22e3cc2a84cadde379c25393c36b410f6eb Mon Sep 17 00:00:00 2001 From: mornyx Date: Thu, 23 Nov 2023 12:11:42 +0800 Subject: [PATCH] fix ci Signed-off-by: mornyx --- component/conprof/http/api_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/component/conprof/http/api_test.go b/component/conprof/http/api_test.go index 4fca930..9317f5d 100644 --- a/component/conprof/http/api_test.go +++ b/component/conprof/http/api_test.go @@ -59,6 +59,9 @@ func TestAPI(t *testing.T) { mockServer := testutil.CreateMockProfileServer(t) defer mockServer.Stop(t) + // wait for http server ready + time.Sleep(time.Second) + topoSubScribe := make(topology.Subscriber) err := conprof.Init(ts.db, topoSubScribe) require.NoError(t, err)