From dad0892a39d96b62d3af4920983fc2a9030952f0 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Mon, 10 Sep 2018 22:29:35 +0200 Subject: [PATCH] wait until dns server is up --- app/dns/server_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/dns/server_test.go b/app/dns/server_test.go index 2650452c..bf31ce54 100644 --- a/app/dns/server_test.go +++ b/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{