Auto merge of #4356 - oxarbitrage:issue4286, r=str4d
remove debug noise from gtests Closes #4286.
This commit is contained in:
commit
d75fe844e3
|
@ -101,13 +101,11 @@ TEST(MempoolLimitTests, WeightedTxTreeCheckSizeAfterDropping)
|
||||||
boost::optional<uint256> drop = tree.maybeDropRandom();
|
boost::optional<uint256> drop = tree.maybeDropRandom();
|
||||||
ASSERT_TRUE(drop.is_initialized());
|
ASSERT_TRUE(drop.is_initialized());
|
||||||
uint256 txid = drop.get();
|
uint256 txid = drop.get();
|
||||||
std::cerr << "Trial " << trialNum++ << ": dropped " << txid.ToString() << std::endl;
|
|
||||||
testedDropping.insert(txid);
|
testedDropping.insert(txid);
|
||||||
// Do not continue to test if a particular trial fails
|
// Do not continue to test if a particular trial fails
|
||||||
ASSERT_EQ(8000, tree.getTotalWeight().cost);
|
ASSERT_EQ(8000, tree.getTotalWeight().cost);
|
||||||
ASSERT_EQ(txid == TX_ID3 ? 8000 : 8000 + LOW_FEE_PENALTY, tree.getTotalWeight().evictionWeight);
|
ASSERT_EQ(txid == TX_ID3 ? 8000 : 8000 + LOW_FEE_PENALTY, tree.getTotalWeight().evictionWeight);
|
||||||
}
|
}
|
||||||
std::cerr << "All 3 scenarios tested in " << trialNum << " trials" << std::endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(MempoolLimitTests, WeightedTxInfoFromTx)
|
TEST(MempoolLimitTests, WeightedTxInfoFromTx)
|
||||||
|
|
|
@ -99,8 +99,6 @@ TEST(paymentdisclosure, mainnet) {
|
||||||
boost::filesystem::create_directories(pathTemp);
|
boost::filesystem::create_directories(pathTemp);
|
||||||
mapArgs["-datadir"] = pathTemp.string();
|
mapArgs["-datadir"] = pathTemp.string();
|
||||||
|
|
||||||
std::cout << "Test payment disclosure database created in folder: " << pathTemp.string() << std::endl;
|
|
||||||
|
|
||||||
PaymentDisclosureDBTest mydb(pathTemp);
|
PaymentDisclosureDBTest mydb(pathTemp);
|
||||||
|
|
||||||
for (int i=0; i<NUM_TRIES; i++) {
|
for (int i=0; i<NUM_TRIES; i++) {
|
||||||
|
|
Loading…
Reference in New Issue