diff --git a/pkg/core/blockchain_test.go b/pkg/core/blockchain_test.go index 3cc4c6e11..3d359afdd 100644 --- a/pkg/core/blockchain_test.go +++ b/pkg/core/blockchain_test.go @@ -243,6 +243,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)