From 7335442eb0e4b727f17b41fb4bd6ac8bf0fd3411 Mon Sep 17 00:00:00 2001 From: Russel Waters Date: Wed, 9 Jan 2019 17:58:35 -0500 Subject: [PATCH] Fix tests broken with #1510 (#1524) --- nano/qt_test/qt.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nano/qt_test/qt.cpp b/nano/qt_test/qt.cpp index 62f1dc54b..b5632dab1 100644 --- a/nano/qt_test/qt.cpp +++ b/nano/qt_test/qt.cpp @@ -43,7 +43,7 @@ TEST (wallet, status) auto wallet_has = [wallet](nano_qt::status_types status_ty) { return wallet->active_status.active.find (status_ty) != wallet->active_status.active.end (); }; - ASSERT_EQ ("Status: Disconnected, Block: 1", wallet->status->text ().toStdString ()); + ASSERT_EQ ("Status: Disconnected, Blocks: 1", wallet->status->text ().toStdString ()); system.nodes[0]->peers.insert (nano::endpoint (boost::asio::ip::address_v6::loopback (), 10000), 0); // Because of the wallet "vulnerable" message, this won't be the message displayed. // However, it will still be part of the status set. @@ -227,7 +227,7 @@ TEST (wallet, enter_password) QTest::mouseClick (wallet->settings.lock_toggle, Qt::LeftButton); QTest::mouseClick (wallet->settings.lock_toggle, Qt::LeftButton); test_application->processEvents (); - ASSERT_EQ ("Status: Wallet password empty, Block: 1", wallet->status->text ().toStdString ()); + ASSERT_EQ ("Status: Wallet password empty, Blocks: 1", wallet->status->text ().toStdString ()); { auto transaction (system.nodes[0]->store.tx_begin (true)); ASSERT_FALSE (system.wallet (0)->store.rekey (transaction, "abc")); @@ -235,12 +235,12 @@ TEST (wallet, enter_password) QTest::mouseClick (wallet->settings_button, Qt::LeftButton); QTest::mouseClick (wallet->settings.lock_toggle, Qt::LeftButton); test_application->processEvents (); - ASSERT_EQ ("Status: Wallet locked, Block: 1", wallet->status->text ().toStdString ()); + ASSERT_EQ ("Status: Wallet locked, Blocks: 1", wallet->status->text ().toStdString ()); wallet->settings.new_password->setText (""); QTest::keyClicks (wallet->settings.password, "abc"); QTest::mouseClick (wallet->settings.lock_toggle, Qt::LeftButton); test_application->processEvents (); - ASSERT_EQ ("Status: Running, Block: 1", wallet->status->text ().toStdString ()); + ASSERT_EQ ("Status: Running, Blocks: 1", wallet->status->text ().toStdString ()); ASSERT_EQ ("", wallet->settings.password->text ()); }