Skip to content

Commit

Permalink
Merge pull request #2777 from Taraxa-project/fnt_fix
Browse files Browse the repository at this point in the history
chore: fix tests
  • Loading branch information
MatusKysel authored Jun 7, 2024
2 parents 2307035 + e4eab7f commit 9e76434
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ void TransactionManager::saveTransactionsFromDagBlock(SharedTransactions const &
if (transactions_pool_.erase(tx_hash)) {
LOG(log_dg_) << "Transaction " << tx_hash << " removed from trx pool ";
// Transactions are counted when included in DAG
trx_count_++;
accepted_transactions.emplace_back(tx_hash);
}
trx_count_++;
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions tests/full_node_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,6 @@ TEST_F(FullNodeTest, sync_two_nodes1) {
for (const auto &trx : samples::createSignedTrxSamples(1, 400, g_secret)) {
nodes[0]->getTransactionManager()->insertTransaction(trx);
}
taraxa::thisThreadSleepForMilliSeconds(500);
for (const auto &trx : samples::createSignedTrxSamples(401, 1000, g_secret)) {
nodes[1]->getTransactionManager()->insertTransaction(trx);
}
Expand Down Expand Up @@ -902,7 +901,6 @@ TEST_F(FullNodeTest, persist_counter) {
for (const auto &trx : samples::createSignedTrxSamples(1, 400, g_secret)) {
nodes[0]->getTransactionManager()->insertTransaction(trx);
}
taraxa::thisThreadSleepForMilliSeconds(500);
for (const auto &trx : samples::createSignedTrxSamples(401, 1000, g_secret)) {
nodes[1]->getTransactionManager()->insertTransaction(trx);
}
Expand Down

0 comments on commit 9e76434

Please sign in to comment.