mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 14:11:04 +02:00
chancloser: fix error tests
These tests previously only worked because we didn't properly wait for all transitions to come in. We fix them by correctly asserting the expected number of state transitions.
This commit is contained in:
@@ -2003,12 +2003,7 @@ func TestRbfCloseErr(t *testing.T) {
|
||||
// initiate a new local sig).
|
||||
closeHarness.assertSingleRbfIteration(
|
||||
localOffer, balanceAfterClose, absoluteFee,
|
||||
noDustExpect, false,
|
||||
)
|
||||
|
||||
// We should terminate in the negotiation state.
|
||||
closeHarness.assertStateTransitions(
|
||||
&ClosingNegotiation{},
|
||||
noDustExpect, true,
|
||||
)
|
||||
})
|
||||
|
||||
@@ -2050,7 +2045,7 @@ func TestRbfCloseErr(t *testing.T) {
|
||||
// sig.
|
||||
closeHarness.assertSingleRemoteRbfIteration(
|
||||
feeOffer, balanceAfterClose, absoluteFee, sequence,
|
||||
false, true,
|
||||
true, true,
|
||||
)
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user