From 640fe2558b9b812f812fe1591dfc564037abb470 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 3 Dec 2018 21:04:24 -0800 Subject: [PATCH] discovery: update TestReceiveRemoteChannelUpdateFirst due to stricter stale node checks A recent commit modified the `IsNodeStale` method in the mocks to mirror the actual implementation in the gossiper. As a result, we now expect one less node announcement to be broadcast. --- discovery/gossiper_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discovery/gossiper_test.go b/discovery/gossiper_test.go index a975daf8..a1db0e70 100644 --- a/discovery/gossiper_test.go +++ b/discovery/gossiper_test.go @@ -2489,7 +2489,7 @@ func TestReceiveRemoteChannelUpdateFirst(t *testing.T) { t.Fatalf("unable to process :%v", err) } - for i := 0; i < 5; i++ { + for i := 0; i < 4; i++ { select { case <-ctx.broadcastedMessage: case <-time.After(time.Second):