Browse Source

wait until dns server is up

pull/1269/head
Darien Raymond 6 years ago
parent
commit
dad0892a39
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 2
      app/dns/server_test.go

2
app/dns/server_test.go

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

Loading…
Cancel
Save