Skip to content

Commit

Permalink
Revert "wallet_db_test fix"
Browse files Browse the repository at this point in the history
This reverts commit f208964.
  • Loading branch information
nesbox committed Dec 5, 2018
1 parent a7a29e5 commit bb40795
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wallet/unittests/wallet_db_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ void TestSelect()
db->store(coins);
coins = db->selectCoins(5, false);
WALLET_CHECK(coins.size() == 2);
WALLET_CHECK(coins.back().m_ID.m_Value == 2);
WALLET_CHECK(coins[0].m_ID.m_Value == 2);
}
{
db->remove(ExtractIDs(db->selectCoins(18, false)));
Expand Down Expand Up @@ -692,8 +692,8 @@ void TestSelect()

coins = db->selectCoins(7, false);
WALLET_CHECK(coins.size() == 2);
WALLET_CHECK(coins[0].m_ID.m_Value == 4);
WALLET_CHECK(coins[1].m_ID.m_Value == 3);
WALLET_CHECK(coins[0].m_ID.m_Value == 3);
WALLET_CHECK(coins[1].m_ID.m_Value == 4);
}
{
db->remove(ExtractIDs(db->selectCoins(10, false)));
Expand All @@ -720,8 +720,8 @@ void TestSelect()
db->store(coins);
coins = db->selectCoins(41000000, false);
WALLET_CHECK(coins.size() == 2);
WALLET_CHECK(coins[1].m_ID.m_Value == 2999057);
WALLET_CHECK(coins[0].m_ID.m_Value == 40000000);
WALLET_CHECK(coins[0].m_ID.m_Value == 2999057);
WALLET_CHECK(coins[1].m_ID.m_Value == 40000000);
coins = db->selectCoins(4000000, false);
WALLET_CHECK(coins.size() == 1);
WALLET_CHECK(coins[0].m_ID.m_Value == 5000000);
Expand Down

0 comments on commit bb40795

Please sign in to comment.