Skip to content

Commit 5d203a2

Browse files
authored
test: change error_code in tecdsa_signature_fails_without_cycles_test (#3352)
A temporary fix for a test failure introduced by #3282
1 parent b7498fa commit 5d203a2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

rs/tests/consensus/tecdsa/tecdsa_signature_fails_without_cycles_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fn test(env: TestEnv) {
7979
scale_cycles(ECDSA_SIGNATURE_FEE) - Cycles::from(1u64),
8080
scale_cycles(ECDSA_SIGNATURE_FEE),
8181
),
82-
error_code: None
82+
error_code: Some("IC0406".to_string())
8383
})
8484
)
8585
}

rs/tests/consensus/tecdsa/tecdsa_signature_life_cycle_test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ fn test(env: TestEnv) {
100100
ChainKeyError(\"Requested unknown threshold key: {}, existing keys: {}\")",
101101
key_id3, initial_key_ids_as_string,
102102
),
103-
error_code: None,
103+
error_code: Some("IC0406".to_string()),
104104
})
105105
);
106106
assert_eq!(
@@ -121,7 +121,7 @@ fn test(env: TestEnv) {
121121
existing enabled keys: {}\")",
122122
key_id3, initial_key_ids_as_string,
123123
),
124-
error_code: None,
124+
error_code: Some("IC0406".to_string()),
125125
})
126126
);
127127

@@ -228,7 +228,7 @@ fn test(env: TestEnv) {
228228
existing enabled keys: []\")",
229229
method_name, key_id
230230
),
231-
error_code: None
231+
error_code: Some("IC0406".to_string())
232232
})
233233
);
234234
break;

rs/tests/consensus/tecdsa/tecdsa_signature_timeout_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fn test(env: TestEnv) {
6767
AgentError::CertifiedReject(RejectResponse {
6868
reject_code: RejectCode::CanisterReject,
6969
reject_message: "Signature request expired".to_string(),
70-
error_code: None
70+
error_code: Some("IC0406".to_string())
7171
})
7272
)
7373
}

0 commit comments

Comments
 (0)