[worker teset] Wait for http server starting

This commit is contained in:
z4yx 2020-03-13 16:41:30 +08:00
parent 6ef9ccdfe6
commit 5c140035ec

View File

@ -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) {