parent
7d07afec21
commit
7335442eb0
1 changed files with 4 additions and 4 deletions
|
|
@ -43,7 +43,7 @@ TEST (wallet, status)
|
||||||
auto wallet_has = [wallet](nano_qt::status_types status_ty) {
|
auto wallet_has = [wallet](nano_qt::status_types status_ty) {
|
||||||
return wallet->active_status.active.find (status_ty) != wallet->active_status.active.end ();
|
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);
|
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.
|
// Because of the wallet "vulnerable" message, this won't be the message displayed.
|
||||||
// However, it will still be part of the status set.
|
// 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);
|
||||||
QTest::mouseClick (wallet->settings.lock_toggle, Qt::LeftButton);
|
QTest::mouseClick (wallet->settings.lock_toggle, Qt::LeftButton);
|
||||||
test_application->processEvents ();
|
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));
|
auto transaction (system.nodes[0]->store.tx_begin (true));
|
||||||
ASSERT_FALSE (system.wallet (0)->store.rekey (transaction, "abc"));
|
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_button, Qt::LeftButton);
|
||||||
QTest::mouseClick (wallet->settings.lock_toggle, Qt::LeftButton);
|
QTest::mouseClick (wallet->settings.lock_toggle, Qt::LeftButton);
|
||||||
test_application->processEvents ();
|
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 ("");
|
wallet->settings.new_password->setText ("");
|
||||||
QTest::keyClicks (wallet->settings.password, "abc");
|
QTest::keyClicks (wallet->settings.password, "abc");
|
||||||
QTest::mouseClick (wallet->settings.lock_toggle, Qt::LeftButton);
|
QTest::mouseClick (wallet->settings.lock_toggle, Qt::LeftButton);
|
||||||
test_application->processEvents ();
|
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 ());
|
ASSERT_EQ ("", wallet->settings.password->text ());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue