mirror of
https://github.com/tuna/tunasync.git
synced 2025-06-15 22:52:42 +00:00
[worker teset] Wait for http server starting
This commit is contained in:
parent
6ef9ccdfe6
commit
5c140035ec
@ -93,6 +93,8 @@ func TestWorker(t *testing.T) {
|
|||||||
err := httpServer.ListenAndServe()
|
err := httpServer.ListenAndServe()
|
||||||
So(err, ShouldBeNil)
|
So(err, ShouldBeNil)
|
||||||
}()
|
}()
|
||||||
|
// Wait for http server starting
|
||||||
|
time.Sleep(500 * time.Millisecond)
|
||||||
|
|
||||||
Convey("Worker should work", t, func(ctx C) {
|
Convey("Worker should work", t, func(ctx C) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user