aboutsummaryrefslogtreecommitdiffstats
path: root/console
diff options
context:
space:
mode:
authorJanoš Guljaš <janos@users.noreply.github.com>2019-02-07 18:40:36 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-02-07 18:40:36 +0800
commit26aea736736dc70257b1c11676f626ab775e9339 (patch)
tree93d60a587905e6f5ac170d71fb0c78127ec75d27 /console
parent81801ccc2b5444ebcf05bf1cf1562fc7a7c2b93e (diff)
downloadgo-tangerine-26aea736736dc70257b1c11676f626ab775e9339.tar
go-tangerine-26aea736736dc70257b1c11676f626ab775e9339.tar.gz
go-tangerine-26aea736736dc70257b1c11676f626ab775e9339.tar.bz2
go-tangerine-26aea736736dc70257b1c11676f626ab775e9339.tar.lz
go-tangerine-26aea736736dc70257b1c11676f626ab775e9339.tar.xz
go-tangerine-26aea736736dc70257b1c11676f626ab775e9339.tar.zst
go-tangerine-26aea736736dc70257b1c11676f626ab775e9339.zip
cmd, node, p2p/simulations: fix node account manager leak (#19004)
* node: close AccountsManager in new Close method * p2p/simulations, p2p/simulations/adapters: handle node close on shutdown * node: move node ephemeralKeystore cleanup to stop method * node: call Stop in Node.Close method * cmd/geth: close node.Node created with makeFullNode in cli commands * node: close Node instances in tests * cmd/geth, node: minor code style fixes * cmd, console, miner, mobile: proper node Close() termination
Diffstat (limited to 'console')
-rw-r--r--console/console_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/console/console_test.go b/console/console_test.go
index 26465ca6f..55d799725 100644
--- a/console/console_test.go
+++ b/console/console_test.go
@@ -149,8 +149,8 @@ func (env *tester) Close(t *testing.T) {
if err := env.console.Stop(false); err != nil {
t.Errorf("failed to stop embedded console: %v", err)
}
- if err := env.stack.Stop(); err != nil {
- t.Errorf("failed to stop embedded node: %v", err)
+ if err := env.stack.Close(); err != nil {
+ t.Errorf("failed to tear down embedded node: %v", err)
}
os.RemoveAll(env.workspace)
}