mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
lnd: replace defer cleanup with t.Cleanup
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
@@ -37,8 +37,7 @@ func TestWitnessBeaconIntercept(t *testing.T) {
|
||||
[]byte{2},
|
||||
)
|
||||
require.NoError(t, err)
|
||||
|
||||
defer subscription.CancelSubscription()
|
||||
t.Cleanup(subscription.CancelSubscription)
|
||||
|
||||
require.NoError(t, interceptedFwd.Settle(preimage))
|
||||
|
||||
|
Reference in New Issue
Block a user