Skip to content

Commit

Permalink
Fixing qt test with hidden adhoc keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Mar 19, 2016
1 parent fb0e5b7 commit fe5c24a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions rai/qt_test/qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ TEST (wallet, construction)
{
rai::system system (24000, 1);
auto wallet_l (system.nodes [0]->wallets.create (rai::uint256_union ()));
rai::keypair key;
wallet_l->insert_adhoc (key.prv);
rai_qt::wallet wallet (*test_application, *system.nodes [0], wallet_l, key.pub);
ASSERT_EQ (key.pub.to_account_split (), wallet.self.account_text->text ().toStdString ());
auto key (wallet_l->deterministic_insert ());
rai_qt::wallet wallet (*test_application, *system.nodes [0], wallet_l, key);
ASSERT_EQ (key.to_account_split (), wallet.self.account_text->text ().toStdString ());
ASSERT_EQ (1, wallet.accounts.model->rowCount ());
auto item1 (wallet.accounts.model->item (0, 1));
ASSERT_EQ (key.pub.to_account (), item1->text ().toStdString ());
ASSERT_EQ (key.to_account (), item1->text ().toStdString ());
}

TEST (wallet, status)
Expand Down

0 comments on commit fe5c24a

Please sign in to comment.