Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle soroban loadgen mode misconfig gracefully #4559

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ThomasBrady
Copy link
Contributor

Description

Resolves #4473

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v8.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

SirTyson
SirTyson previously approved these changes Nov 26, 2024
Copy link
Contributor

@SirTyson SirTyson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, super minor cleanup

@@ -348,6 +348,13 @@ LoadGenerator::start(GeneratedLoadConfig& cfg)
if (cfg.modeInvokes())
{
auto const& sorobanLoadCfg = cfg.getSorobanConfig();
if (!mCodeKey)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Remove mCodeKey assert below.

@@ -125,6 +125,36 @@ TEST_CASE("generate load with unique accounts", "[loadgen]")
10 * Herder::EXP_LEDGER_TIMESPAN_SECONDS, false);
}
}
TEST_CASE("handle soroban loadgen mode misconfiguration gracefully",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: This doesn't have to be it's own test, but could just be a SECTION in "generate soroban load"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

handle soroban loadgen modes misconfiguration gracefully
2 participants