From 29b9f3c4e7de26640f2afc14eac6b4a79b16ea50 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Sun, 21 Oct 2018 23:11:46 +0100 Subject: [PATCH] Fixing select_accounts test. --- rai/qt_test/qt.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rai/qt_test/qt.cpp b/rai/qt_test/qt.cpp index 9a3c1dac..656c63ef 100644 --- a/rai/qt_test/qt.cpp +++ b/rai/qt_test/qt.cpp @@ -80,6 +80,7 @@ TEST (wallet, select_account) rai::system system (24000, 1); auto wallet_l (system.nodes[0]->wallets.create (rai::uint256_union ())); rai::public_key key1 (wallet_l->deterministic_insert ()); + rai::public_key key2 (wallet_l->deterministic_insert ()); auto wallet (std::make_shared (*test_application, processor, *system.nodes[0], wallet_l, key1)); wallet->start (); ASSERT_EQ (key1, wallet->account); @@ -92,6 +93,7 @@ TEST (wallet, select_account) QTest::mouseClick (wallet->accounts.use_account, Qt::LeftButton); auto key4 (wallet->account); ASSERT_NE (key3, key4); + ASSERT_EQ (key2, key4); } TEST (wallet, main)