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

Fix asserts #54

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 25 additions & 21 deletions workload/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,123 +101,127 @@ impl Code {
match step_type {
StepType::NewWalletKeyPair => {
antithesis_sdk::assert_always!(
is_fatal,
!is_fatal,
"Done executing NewWalletKeyPair",
&details
);
}
StepType::FaucetTransfer => {
antithesis_sdk::assert_always!(
is_fatal,
!is_fatal,
"Done executing FaucetTransfer",
&details
);
}
StepType::TransparentTransfer => {
antithesis_sdk::assert_always!(
is_fatal,
!is_fatal,
"Done executing TransparentTransfer",
&details
);
}
StepType::Bond => {
antithesis_sdk::assert_always!(is_fatal, "Done executing Bond", &details);
antithesis_sdk::assert_always!(!is_fatal, "Done executing Bond", &details);
}
StepType::InitAccount => {
antithesis_sdk::assert_always!(
is_fatal,
!is_fatal,
"Done executing InitAccount",
&details
);
}
StepType::Redelegate => {
antithesis_sdk::assert_always!(is_fatal, "Done executing Redelegate", &details);
antithesis_sdk::assert_always!(
!is_fatal,
"Done executing Redelegate",
&details
);
}
StepType::Unbond => {
antithesis_sdk::assert_always!(is_fatal, "Done executing Unbond", &details);
antithesis_sdk::assert_always!(!is_fatal, "Done executing Unbond", &details);
}
StepType::ClaimRewards => {
antithesis_sdk::assert_always!(
is_fatal,
!is_fatal,
"Done executing ClaimRewards",
&details
);
}
StepType::BatchBond => {
antithesis_sdk::assert_always!(is_fatal, "Done executing BatchBond", &details);
antithesis_sdk::assert_always!(!is_fatal, "Done executing BatchBond", &details);
}
StepType::BatchRandom => {
antithesis_sdk::assert_always!(
is_fatal,
!is_fatal,
"Done executing BatchRandom",
&details
);
}
StepType::Shielding => {
antithesis_sdk::assert_always!(is_fatal, "Done executing Shielding", &details);
antithesis_sdk::assert_always!(!is_fatal, "Done executing Shielding", &details);
}
StepType::Shielded => {
antithesis_sdk::assert_always!(is_fatal, "Done executing Shielded", &details);
antithesis_sdk::assert_always!(!is_fatal, "Done executing Shielded", &details);
}
StepType::Unshielding => {
antithesis_sdk::assert_always!(
is_fatal,
!is_fatal,
"Done executing Unshielding",
&details
);
}
StepType::BecomeValidator => {
antithesis_sdk::assert_always!(
is_fatal,
!is_fatal,
"Done executing BecomeValidator",
&details
);
}
StepType::ChangeMetadata => {
antithesis_sdk::assert_always!(
is_fatal,
!is_fatal,
"Done executing ChangeMetadata",
&details
);
}
StepType::ChangeConsensusKeys => {
antithesis_sdk::assert_always!(
is_fatal,
!is_fatal,
"Done executing ChangeConsensusKeys",
&details
);
}
StepType::UpdateAccount => {
antithesis_sdk::assert_always!(
is_fatal,
!is_fatal,
"Done executing UpdateAccount",
&details
);
}
StepType::DeactivateValidator => {
antithesis_sdk::assert_always!(
is_fatal,
!is_fatal,
"Done executing DeactivateValidator",
&details
);
}
StepType::ReactivateValidator => {
antithesis_sdk::assert_always!(
is_fatal,
!is_fatal,
"Done executing ReactivateValidator",
&details
);
}
StepType::DefaultProposal => {
antithesis_sdk::assert_always!(
is_fatal,
!is_fatal,
"Done executing DefaultProposal",
&details
);
}
StepType::VoteProposal => {
antithesis_sdk::assert_always!(
is_fatal,
!is_fatal,
"Done executing VoteProposal",
&details
);
Expand Down
Loading