소스 검색

wait until dns server is up

Darien Raymond 7 년 전
부모
커밋
dad0892a39
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      app/dns/server_test.go

+ 2 - 0
app/dns/server_test.go

@@ -50,6 +50,7 @@ func TestUDPServer(t *testing.T) {
 	}
 
 	go dnsServer.ListenAndServe()
+	time.Sleep(time.Second)
 
 	config := &core.Config{
 		App: []*serial.TypedMessage{
@@ -113,6 +114,7 @@ func TestPrioritizedDomain(t *testing.T) {
 	}
 
 	go dnsServer.ListenAndServe()
+	time.Sleep(time.Second)
 
 	config := &core.Config{
 		App: []*serial.TypedMessage{