From e28853ebd4aa4094d22347f57617c44fc8e28f90 Mon Sep 17 00:00:00 2001 From: Vlad Dobromyslov Date: Fri, 4 Mar 2022 20:16:09 +0300 Subject: [PATCH] #279 Add additional generate_block, so we don't have randomly test fail --- tests/cli/son.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/cli/son.cpp b/tests/cli/son.cpp index a8d06c2c..491ec8f9 100644 --- a/tests/cli/son.cpp +++ b/tests/cli/son.cpp @@ -60,8 +60,14 @@ public: create_tx = fixture_.con.wallet_api_ptr->create_account_with_brain_key( bki.brain_priv_key, account_name, "nathan", "nathan", true ); + + fixture_.generate_block(); + // save the private key for this new account in the wallet file BOOST_CHECK(fixture_.con.wallet_api_ptr->import_key(account_name, bki.wif_priv_key)); + + fixture_.generate_block(); + fixture_.con.wallet_api_ptr->save_wallet_file(fixture_.con.wallet_filename); // attempt to give son account some CORE tokens -- 2.45.2