From 850da13622258c86de1e17e81be2c3d1c84e1a8d Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Tue, 27 Jun 2017 13:31:32 +0200 Subject: [PATCH] Do some cleanup in the test, so it doesn't fail in my shell --- cmd/tendermint/commands/root_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/tendermint/commands/root_test.go b/cmd/tendermint/commands/root_test.go index f776a024..01d69bb6 100644 --- a/cmd/tendermint/commands/root_test.go +++ b/cmd/tendermint/commands/root_test.go @@ -25,6 +25,11 @@ const ( // isolate provides a clean setup and returns a copy of RootCmd you can // modify in the test cases func isolate(cmds ...*cobra.Command) cli.Executable { + os.Unsetenv("TMHOME") + os.Unsetenv("TM_HOME") + os.Unsetenv("TMROOT") + os.Unsetenv("TM_ROOT") + viper.Reset() config = cfg.DefaultConfig() r := &cobra.Command{