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.
This commit is contained in:
Olaoluwa Osuntokun 2018-12-03 21:04:24 -08:00
parent da973315d4
commit 640fe2558b
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

View File

@ -2489,7 +2489,7 @@ func TestReceiveRemoteChannelUpdateFirst(t *testing.T) {
t.Fatalf("unable to process :%v", err) t.Fatalf("unable to process :%v", err)
} }
for i := 0; i < 5; i++ { for i := 0; i < 4; i++ {
select { select {
case <-ctx.broadcastedMessage: case <-ctx.broadcastedMessage:
case <-time.After(time.Second): case <-time.After(time.Second):