fix wallet.startup_balance (#1642)

* fix wallet.startup_balance unit test
This commit is contained in:
Russel Waters 2019-01-25 20:15:16 -05:00 committed by GitHub
commit 558ed2c3fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,9 @@ TEST (wallet, startup_balance)
nano::keypair key;
wallet_l->insert_adhoc (key.prv);
auto wallet (std::make_shared<nano_qt::wallet> (*test_application, processor, *system.nodes[0], wallet_l, key.pub));
wallet->needs_balance_refresh = true;
wallet->start ();
wallet->application.processEvents (QEventLoop::AllEvents);
ASSERT_EQ ("Balance: 0 NANO", wallet->self.balance_label->text ().toStdString ());
}