From 7de0e85769bfaac1766946a1a541726a9f2ed761 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 27 Feb 2020 13:06:16 +0300 Subject: [PATCH] gossip tests are broker in github Signed-off-by: Vasiliy Tolstov --- gossip_test.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gossip_test.go b/gossip_test.go index a9cefe3..8208490 100644 --- a/gossip_test.go +++ b/gossip_test.go @@ -36,6 +36,10 @@ func newRegistry(opts ...registry.Option) registry.Registry { } func TestGossipRegistryBroadcast(t *testing.T) { + if tr := os.Getenv("TRAVIS"); len(tr) > 0 { + t.Skip() + } + mc1 := newMemberlistConfig() r1 := newRegistry(Config(mc1), Address("127.0.0.1:54321")) @@ -96,6 +100,10 @@ func TestGossipRegistryBroadcast(t *testing.T) { } func TestGossipRegistryRetry(t *testing.T) { + if tr := os.Getenv("TRAVIS"); len(tr) > 0 { + t.Skip() + } + mc1 := newMemberlistConfig() 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") } - 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")) <-time.After(2 * time.Second)