Skip to content

Commit

Permalink
fix: block proposal test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
hstove committed Nov 27, 2024
1 parent 06bc712 commit dbee3fa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions testnet/stacks-node/src/tests/signer/v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ fn block_proposal_rejection() {
signer_test.wait_for_validate_reject_response(short_timeout, block_signer_signature_hash_2);
assert!(matches!(
reject.reason_code,
ValidateRejectCode::UnknownParent
ValidateRejectCode::InvalidBlock
));

let start_polling = Instant::now();
Expand All @@ -532,7 +532,10 @@ fn block_proposal_rejection() {
assert!(matches!(reason_code, RejectCode::SortitionViewMismatch));
} else if signer_signature_hash == block_signer_signature_hash_2 {
found_signer_signature_hash_2 = true;
assert!(matches!(reason_code, RejectCode::ValidationFailed(_)));
assert!(matches!(
reason_code,
RejectCode::ValidationFailed(ValidateRejectCode::InvalidBlock)
));
} else {
continue;
}
Expand Down

0 comments on commit dbee3fa

Please sign in to comment.