From 94ffb07b905688317e5b5ba6e68c9f05cc2b93c7 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 13 Nov 2017 22:42:57 -0800 Subject: [PATCH] lnwallet: ensure created channels are stopped in ChanSync tests --- lnwallet/channel_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lnwallet/channel_test.go b/lnwallet/channel_test.go index 15692609..1c512b00 100644 --- a/lnwallet/channel_test.go +++ b/lnwallet/channel_test.go @@ -3160,6 +3160,7 @@ func TestChanSyncOweRevocationAndCommit(t *testing.T) { if err != nil { t.Fatalf("unable to restart channel: %v", err) } + defer bobChannel.Stop() assertBobSendsRevokeAndCommit() // We'll now finish the state transition by having Alice process both @@ -3308,6 +3309,7 @@ func TestChanSyncOweRevocationAndCommitForceTransition(t *testing.T) { if err != nil { t.Fatalf("unable to restart channel: %v", err) } + defer bobChannel.Stop() if len(bobMsgsToSend) != 2 { t.Fatalf("expected bob to send %v messages, instead "+ "sends: %v", 2, spew.Sdump(bobMsgsToSend))