Skip to content

Commit

Permalink
Merge pull request #3825 from marta-lokhova/loadgen_fix
Browse files Browse the repository at this point in the history
loadgen follow up: fix acceptance test

Reviewed-by: sisuresh
  • Loading branch information
latobarita authored Jul 12, 2023
2 parents 7fdf0a6 + 135b781 commit ec237a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/overlay/test/OverlayTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2596,10 +2596,12 @@ TEST_CASE("overlay pull mode loadgen", "[overlay][pullmode][acceptance]")
qSet.validators.push_back(vNode2NodeID);

auto configs = std::vector<Config>{};
auto const numAccounts = 5;

for (auto i = 0; i < 2; i++)
{
auto cfg = getTestConfig(i + 1);
cfg.TESTING_UPGRADE_MAX_TX_SET_SIZE = numAccounts * MAX_OPS_PER_TX;
configs.push_back(cfg);
}

Expand All @@ -2619,9 +2621,8 @@ TEST_CASE("overlay pull mode loadgen", "[overlay][pullmode][acceptance]")

// Create 5 txns each creating one new account.
// Set a really high tx rate so we create the txns right away.
auto const numAccounts = 5;
loadGen.generateLoad(GeneratedLoadConfig::createAccountsLoad(
/* nAccounts */ numAccounts * 100,
/* nAccounts */ numAccounts * MAX_OPS_PER_TX,
/* txRate */ 1));

// Let the network close multiple ledgers.
Expand Down

0 comments on commit ec237a4

Please sign in to comment.