aboutsummaryrefslogtreecommitdiffstats
path: root/core/bench_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-08-07 20:47:25 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-08-07 21:00:47 +0800
commit2b50367fe938e603a5f9d3a525e0cdfa000f402e (patch)
treec032258a82131d9d3bacbe309682249c2430d6c9 /core/bench_test.go
parent46cf0a616b597dfb8b1feff80ad58b6eb81e57d5 (diff)
downloadgo-tangerine-2b50367fe938e603a5f9d3a525e0cdfa000f402e.tar
go-tangerine-2b50367fe938e603a5f9d3a525e0cdfa000f402e.tar.gz
go-tangerine-2b50367fe938e603a5f9d3a525e0cdfa000f402e.tar.bz2
go-tangerine-2b50367fe938e603a5f9d3a525e0cdfa000f402e.tar.lz
go-tangerine-2b50367fe938e603a5f9d3a525e0cdfa000f402e.tar.xz
go-tangerine-2b50367fe938e603a5f9d3a525e0cdfa000f402e.tar.zst
go-tangerine-2b50367fe938e603a5f9d3a525e0cdfa000f402e.zip
core: fix blockchain goroutine leaks in tests
Diffstat (limited to 'core/bench_test.go')
-rw-r--r--core/bench_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/bench_test.go b/core/bench_test.go
index 20676fc97..b9250f7d3 100644
--- a/core/bench_test.go
+++ b/core/bench_test.go
@@ -300,6 +300,7 @@ func benchReadChain(b *testing.B, full bool, count uint64) {
}
}
+ chain.Stop()
db.Close()
}
}