gossip tests are broker in github

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-02-27 13:06:16 +03:00
parent eb952f937d
commit 7de0e85769

View File

@ -36,6 +36,10 @@ func newRegistry(opts ...registry.Option) registry.Registry {
} }
func TestGossipRegistryBroadcast(t *testing.T) { func TestGossipRegistryBroadcast(t *testing.T) {
if tr := os.Getenv("TRAVIS"); len(tr) > 0 {
t.Skip()
}
mc1 := newMemberlistConfig() mc1 := newMemberlistConfig()
r1 := newRegistry(Config(mc1), Address("127.0.0.1:54321")) r1 := newRegistry(Config(mc1), Address("127.0.0.1:54321"))
@ -96,6 +100,10 @@ func TestGossipRegistryBroadcast(t *testing.T) {
} }
func TestGossipRegistryRetry(t *testing.T) { func TestGossipRegistryRetry(t *testing.T) {
if tr := os.Getenv("TRAVIS"); len(tr) > 0 {
t.Skip()
}
mc1 := newMemberlistConfig() mc1 := newMemberlistConfig()
r1 := newRegistry(Config(mc1), Address("127.0.0.1:54321")) r1 := newRegistry(Config(mc1), Address("127.0.0.1:54321"))
@ -177,12 +185,6 @@ func TestGossipRegistryRetry(t *testing.T) {
t.Fatalf("[gossip registry] service.1 found in r2") t.Fatalf("[gossip registry] service.1 found in r2")
} }
if tr := os.Getenv("TRAVIS"); len(tr) > 0 {
t.Logf("[gossip registry] skip test on travis")
t.Skip()
return
}
r1 = newRegistry(Config(mc1), Address("127.0.0.1:54321")) r1 = newRegistry(Config(mc1), Address("127.0.0.1:54321"))
<-time.After(2 * time.Second) <-time.After(2 * time.Second)