This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
Browse Source
Merge pull request
#563
from tendermint/bugfix/ignore-tmhome-in-tests
Do some cleanup in the test, so it doesn't fail in my shell
pull/587/head
Ethan Buchman
8 years ago
committed by
GitHub
parent
7f3c697b6e
850da13622
commit
8355fee16a
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
cmd/tendermint/commands/root_test.go
+ 5
- 0
cmd/tendermint/commands/root_test.go
View File
@ -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
{
Write
Preview
Loading…
Cancel
Save