Explorar o código

[worker teset] Wait for http server starting

z4yx %!s(int64=5) %!d(string=hai) anos
pai
achega
5c140035ec
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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) {