good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 9e59474e authored by Shihao Xia's avatar Shihao Xia Committed by GitHub
Browse files

core/rawdb: close database in test to avoid goroutine leak (#23287)


* add db close to avoid goroutine leak

* core/rawdb: move close to defer

Co-authored-by: default avatarMartin Holst Swende <martin@swende.se>
parent 8a24b563
No related branches found
No related tags found
No related merge requests found
......@@ -444,6 +444,7 @@ func TestAncientStorage(t *testing.T) {
if err != nil {
t.Fatalf("failed to create database with ancient backend")
}
defer db.Close()
// Create a test block
block := types.NewBlockWithHeader(&types.Header{
Number: big.NewInt(0),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment