1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00

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 // new registry
r := NewRegistry() r := NewRegistry(opts...)
for _, service := range testData { for _, service := range testData {
// register service // register service