From 5071173dfda8e87f87f677815217750760917806 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Tue, 11 May 2021 15:15:39 +0300 Subject: [PATCH] wallet: add test to regenerate CLI testwallet --- pkg/wallet/regenerate_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkg/wallet/regenerate_test.go b/pkg/wallet/regenerate_test.go index b5f1a319b..b44003d41 100644 --- a/pkg/wallet/regenerate_test.go +++ b/pkg/wallet/regenerate_test.go @@ -154,6 +154,20 @@ func TestRegenerateExamplesWallet(t *testing.T) { createWallet(t, walletPath, acc1) } +func TestRegenerateCLITestwallet(t *testing.T) { + if !regenerate { + return + } + const ( + walletPath = "../../cli/testdata/testwallet.json" + accWIF = "L23LrQNWELytYLvb5c6dXBDdF2DNPL9RRNWPqppv3roxacSnn8CN" + ) + + acc := getAccount(t, accWIF, "testpass") + acc.Label = "kek" + createWallet(t, walletPath, acc) +} + func createWallet(t *testing.T, path string, accs ...*Account) { w, err := NewWallet(path) require.NoError(t, err)