From e1eb787fe53d9fbeaf07a0e3a720bef7bb79223b Mon Sep 17 00:00:00 2001 From: maskpp Date: Wed, 7 May 2025 11:13:53 +0800 Subject: [PATCH] update comment --- eth/api_debug_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eth/api_debug_test.go b/eth/api_debug_test.go index 136d1f7738..2a9ec0abae 100644 --- a/eth/api_debug_test.go +++ b/eth/api_debug_test.go @@ -60,7 +60,7 @@ func newAccounts(n int) (accounts []Account) { return accounts } -// newTestBackend creates a new test backend. OBS: After test is done, teardown must be +// newTestBlockChain creates a new test blockchain. OBS: After test is done, teardown must be // invoked in order to release associated resources. func newTestBlockChain(t *testing.T, n int, gspec *core.Genesis, generator func(i int, b *core.BlockGen)) *core.BlockChain { engine := ethash.NewFaker() @@ -306,6 +306,9 @@ func TestGetModifiedAccounts(t *testing.T) { b.AddTx(tx) } }) + defer blockChain.Stop() + + // Create a debug API instance. api := NewDebugAPI(&Ethereum{blockchain: blockChain}) // Test GetModifiedAccountsByNumber