Use temporary dir for lcd keybase tests (closes #646)

This commit is contained in:
Christopher Goes 2018-03-28 18:00:51 +02:00
parent bb66b852ef
commit 44de18e8da

View File

@ -295,7 +295,7 @@ func TestTxs(t *testing.T) {
// strt TM and the LCD in process, listening on their respective sockets
func startTMAndLCD() (*nm.Node, net.Listener, error) {
viper.Set(cli.HomeFlag, os.ExpandEnv("$HOME"))
viper.Set(cli.HomeFlag, os.ExpandEnv("/tmp/$HOME"))
kb, err := keys.GetKeyBase() // dbm.NewMemDB()) // :(
if err != nil {
return nil, nil, err