fix mdns test
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user