[#1309] test: Clean up config after tests

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
This commit is contained in:
Aleksey Savchuk 2024-08-21 17:08:44 +03:00 committed by Evgenii Stratonikov
parent 76f67ea34e
commit dfe825b81b
2 changed files with 11 additions and 0 deletions

View file

@ -24,6 +24,8 @@ var testCmd = &cobra.Command{
}
func Test_getOrGenerate(t *testing.T) {
t.Cleanup(viper.Reset)
dir := t.TempDir()
wallPath := filepath.Join(dir, "wallet.json")