package main import ( "os" "testing" "github.com/stretchr/testify/require" ) const ( walletContent = "03b99ab108e39e9e4cf565c1b706480180a70a4fdc4828e44c50" + "4530c056be5b5f" ) func TestWalletInfo(t *testing.T) { h := newHarness(t) // Dump the wallet information. info := &walletInfoCommand{ WalletDB: h.testdataFile("wallet.db"), WithRootKey: true, } err := os.Setenv(passwordEnvName, testPassPhrase) require.NoError(t, err) err = info.Execute(nil, nil) require.NoError(t, err) h.assertLogContains(walletContent) h.assertLogContains(rootKeyAezeed) }