Skip to content

Commit 3a02f2b

Browse files
committed
lnwallet: use ResetState instead of tweaking private rows
1 parent 606f8e7 commit 3a02f2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lnwallet/channel_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2147,8 +2147,8 @@ func TestCooperativeCloseDustAdherence(t *testing.T) {
21472147
}
21482148

21492149
resetChannelState := func() {
2150-
aliceChannel.isClosed = false
2151-
bobChannel.isClosed = false
2150+
aliceChannel.ResetState()
2151+
bobChannel.ResetState()
21522152
}
21532153

21542154
setBalances := func(aliceBalance, bobBalance lnwire.MilliSatoshi) {

0 commit comments

Comments
 (0)