Skip to content

Commit

Permalink
chore: increase timers for more stable test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusKysel committed May 12, 2023
1 parent 21ef2c7 commit a1f6085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/network_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ TEST_F(NetworkTest, transfer_block) {
SharedTransactions transactions({g_signed_trx_samples[0], g_signed_trx_samples[1]});
nw2->getSpecificHandler<network::tarcap::TransactionPacketHandler>()->onNewTransactions(std::move(transactions));

EXPECT_HAPPENS({10s, 200ms}, [&](auto& ctx) {
EXPECT_HAPPENS({30s, 200ms}, [&](auto& ctx) {
nw1->setPendingPeersToReady();
nw2->setPendingPeersToReady();
WAIT_EXPECT_EQ(ctx, nw1->getPeerCount(), 1)
Expand Down
2 changes: 1 addition & 1 deletion tests/p2p_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ TEST_F(P2PTest, multiple_capabilities) {
std::filesystem::remove_all("/tmp/nw3");
};
auto wait_for_connection = [](std::shared_ptr<Network> nw1, std::shared_ptr<Network> nw2) {
EXPECT_HAPPENS({15s, 500ms}, [&](auto &ctx) {
EXPECT_HAPPENS({30s, 100ms}, [&](auto &ctx) {
nw1->setPendingPeersToReady();
nw2->setPendingPeersToReady();
WAIT_EXPECT_EQ(ctx, nw1->getPeerCount(), 1)
Expand Down

0 comments on commit a1f6085

Please sign in to comment.