From e08dc36e9e7f1074cef7b04edeed7e3220124944 Mon Sep 17 00:00:00 2001 From: Xu Qiaolun Date: Tue, 7 May 2019 12:34:19 +0800 Subject: [PATCH] Increase waiting time --- discovery/discovery_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discovery/discovery_test.go b/discovery/discovery_test.go index df8ef09..d4b1abd 100644 --- a/discovery/discovery_test.go +++ b/discovery/discovery_test.go @@ -162,7 +162,7 @@ func TestMembership(t *testing.T) { go disc9.Connect(common.NetworkMember{Endpoint: "localhost:4053"}, func() (common.PKIidType, error) { return rpc1.GetPKIid(), nil }) go disc10.Connect(common.NetworkMember{Endpoint: "localhost:4053"}, func() (common.PKIidType, error) { return rpc1.GetPKIid(), nil }) - time.Sleep(15 * time.Second) + time.Sleep(20 * time.Second) assert.Len(t, disc1.GetMembership(), 9) assert.Len(t, disc2.GetMembership(), 9) assert.Len(t, disc3.GetMembership(), 9)