Skip to content

Commit

Permalink
Fix for qt tests (dashpay#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
bytzck authored and wagerr-builder committed Jun 17, 2022
1 parent c312f2f commit d70c95b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qt/test/paymentservertests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void PaymentServerTests::paymentServerTests()
for (const std::pair<CScript, CAmount>& sendingTo : sendingTos) {
CTxDestination dest;
if (ExtractDestination(sendingTo.first, dest))
QCOMPARE(PaymentServer::verifyAmount(sendingTo.second), false);
QCOMPARE(PaymentServer::verifyAmount(sendingTo.second), true);
}

delete server;
Expand Down
2 changes: 1 addition & 1 deletion src/qt/test/rpcnestedtests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void RPCNestedTests::rpcNestedTests()
QVERIFY(result == result2);

RPCConsole::RPCExecuteCommandLine(*node, result, "getblock(getbestblockhash())[tx][0]", &filtered);
QVERIFY(result == "e0028eb9648db56b1ac77cf090b99048a8007e2bb64b68f092c03c7f56a662c7");
QVERIFY(result == "80290404060ff7ff5bc6a42f755d24f6087ba5685474a5c8ffafac65de8b2bbf");
QVERIFY(filtered == "getblock(getbestblockhash())[tx][0]");

RPCConsole::RPCParseCommandLine(nullptr, result, "importprivkey", false, &filtered);
Expand Down
8 changes: 8 additions & 0 deletions src/test/test_wagerr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <evo/deterministicmns.h>
#include <evo/cbtx.h>
#include <llmq/quorums_init.h>
#include <tokens/tokendb.h>
#include <zwgr/zerocoindb.h>

void CConnmanTest::AddNode(CNode& node)
{
Expand Down Expand Up @@ -109,6 +111,10 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha
pcoinsdbview.reset(new CCoinsViewDB(1 << 23, true));
llmq::InitLLMQSystem(*evoDb, true);
pcoinsTip.reset(new CCoinsViewCache(pcoinsdbview.get()));
zerocoinDB.reset();
zerocoinDB.reset(new CZerocoinDB(0, false, false));
pTokenDB.reset();
pTokenDB.reset(new CTokenDB(0, false, false));
if (!LoadGenesisBlock(chainparams)) {
throw std::runtime_error("LoadGenesisBlock failed.");
}
Expand Down Expand Up @@ -139,6 +145,8 @@ TestingSetup::~TestingSetup()
llmq::DestroyLLMQSystem();
pcoinsdbview.reset();
pblocktree.reset();
zerocoinDB.reset();
pTokenDB.reset();
}

TestChainSetup::TestChainSetup(int blockCount) : TestingSetup(CBaseChainParams::REGTEST)
Expand Down

0 comments on commit d70c95b

Please sign in to comment.