lnwallet: assert that no chan sync is needed before updates in TestChanSyncFullySynced

This commit is contained in:
Olaoluwa Osuntokun 2017-11-13 22:43:40 -08:00
parent 94ffb07b90
commit 6cd210041d
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

View File

@ -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))