1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

increase timeout on travis

This commit is contained in:
Asim Aslam 2019-11-18 12:58:06 +00:00
parent fa01cadc35
commit 168cc06827

View File

@ -1,7 +1,9 @@
package registry
import (
"os"
"testing"
"time"
)
func TestWatcher(t *testing.T) {
@ -76,8 +78,16 @@ func TestWatcher(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...)
w, err := r.Watch()
if err != nil {