fix mdns test

This commit is contained in:
Asim Aslam 2019-11-19 16:50:16 +00:00
parent 6a0082741c
commit fb5b358ae2

View File

@ -48,8 +48,16 @@ func TestMDNS(t *testing.T) {
},
}
travis := os.Getenv("TRAVIS")
var opts []Option
if travis == "true" {
opts = append(opts, Timeout(time.Millisecond*100))
}
// new registry
r := NewRegistry()
r := NewRegistry(opts...)
for _, service := range testData {
// register service