From 6cd210041db3c2ab28d27b78fbddf44d2c4b0672 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 13 Nov 2017 22:43:40 -0800 Subject: [PATCH] lnwallet: assert that no chan sync is needed before updates in TestChanSyncFullySynced --- lnwallet/channel_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lnwallet/channel_test.go b/lnwallet/channel_test.go index 1c512b00..dd4c7b32 100644 --- a/lnwallet/channel_test.go +++ b/lnwallet/channel_test.go @@ -2427,6 +2427,10 @@ func TestChanSyncFullySynced(t *testing.T) { } defer cleanUp() + // If we exchange channel sync messages from the get-go , then both + // sides should conclude that no further synchronization is needed. + assertNoChanSyncNeeded(t, aliceChannel, bobChannel) + // Next, we'll create an HTLC for Alice to extend to Bob. var paymentPreimage [32]byte copy(paymentPreimage[:], bytes.Repeat([]byte{1}, 32))