Skip to content

Commit dbee3fa

Browse files
committed
fix: block proposal test assertion
1 parent 06bc712 commit dbee3fa

File tree

1 file changed

+5
-2
lines changed
  • testnet/stacks-node/src/tests/signer

1 file changed

+5
-2
lines changed

testnet/stacks-node/src/tests/signer/v0.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ fn block_proposal_rejection() {
506506
signer_test.wait_for_validate_reject_response(short_timeout, block_signer_signature_hash_2);
507507
assert!(matches!(
508508
reject.reason_code,
509-
ValidateRejectCode::UnknownParent
509+
ValidateRejectCode::InvalidBlock
510510
));
511511

512512
let start_polling = Instant::now();
@@ -532,7 +532,10 @@ fn block_proposal_rejection() {
532532
assert!(matches!(reason_code, RejectCode::SortitionViewMismatch));
533533
} else if signer_signature_hash == block_signer_signature_hash_2 {
534534
found_signer_signature_hash_2 = true;
535-
assert!(matches!(reason_code, RejectCode::ValidationFailed(_)));
535+
assert!(matches!(
536+
reason_code,
537+
RejectCode::ValidationFailed(ValidateRejectCode::InvalidBlock)
538+
));
536539
} else {
537540
continue;
538541
}

0 commit comments

Comments
 (0)