Skip to content

Commit

Permalink
test: change error_code in tecdsa_signature_fails_without_cycles_test (
Browse files Browse the repository at this point in the history
…#3352)

A temporary fix for a test failure introduced by #3282
  • Loading branch information
lwshang authored Jan 7, 2025
1 parent b7498fa commit 5d203a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fn test(env: TestEnv) {
scale_cycles(ECDSA_SIGNATURE_FEE) - Cycles::from(1u64),
scale_cycles(ECDSA_SIGNATURE_FEE),
),
error_code: None
error_code: Some("IC0406".to_string())
})
)
}
Expand Down
6 changes: 3 additions & 3 deletions rs/tests/consensus/tecdsa/tecdsa_signature_life_cycle_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ fn test(env: TestEnv) {
ChainKeyError(\"Requested unknown threshold key: {}, existing keys: {}\")",
key_id3, initial_key_ids_as_string,
),
error_code: None,
error_code: Some("IC0406".to_string()),
})
);
assert_eq!(
Expand All @@ -121,7 +121,7 @@ fn test(env: TestEnv) {
existing enabled keys: {}\")",
key_id3, initial_key_ids_as_string,
),
error_code: None,
error_code: Some("IC0406".to_string()),
})
);

Expand Down Expand Up @@ -228,7 +228,7 @@ fn test(env: TestEnv) {
existing enabled keys: []\")",
method_name, key_id
),
error_code: None
error_code: Some("IC0406".to_string())
})
);
break;
Expand Down
2 changes: 1 addition & 1 deletion rs/tests/consensus/tecdsa/tecdsa_signature_timeout_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fn test(env: TestEnv) {
AgentError::CertifiedReject(RejectResponse {
reject_code: RejectCode::CanisterReject,
reject_message: "Signature request expired".to_string(),
error_code: None
error_code: Some("IC0406".to_string())
})
)
}
Expand Down

0 comments on commit 5d203a2

Please sign in to comment.