diff --git a/pkg/core/blockchain_test.go b/pkg/core/blockchain_test.go index d344671b5..5f06ab4d8 100644 --- a/pkg/core/blockchain_test.go +++ b/pkg/core/blockchain_test.go @@ -246,6 +246,7 @@ func TestSubscriptions(t *testing.T) { executionCh := make(chan *state.AppExecResult, chBufSize) bc := newTestChain(t) + defer bc.Close() bc.SubscribeForBlocks(blockCh) bc.SubscribeForTransactions(txCh) bc.SubscribeForNotifications(notificationCh)