Browse Source

[worker teset] Wait for http server starting

z4yx 5 năm trước cách đây
mục cha
commit
5c140035ec
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      worker/worker_test.go

+ 2 - 0
worker/worker_test.go

@@ -93,6 +93,8 @@ func TestWorker(t *testing.T) {
 		err := httpServer.ListenAndServe()
 		So(err, ShouldBeNil)
 	}()
+	// Wait for http server starting
+	time.Sleep(500 * time.Millisecond)
 
 	Convey("Worker should work", t, func(ctx C) {