diff --git a/rs/tests/consensus/tecdsa/tecdsa_signature_life_cycle_test.rs b/rs/tests/consensus/tecdsa/tecdsa_signature_life_cycle_test.rs index 96f29ca668c..830a459e0a0 100644 --- a/rs/tests/consensus/tecdsa/tecdsa_signature_life_cycle_test.rs +++ b/rs/tests/consensus/tecdsa/tecdsa_signature_life_cycle_test.rs @@ -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!( @@ -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()), }) ); @@ -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; diff --git a/rs/tests/consensus/tecdsa/tecdsa_signature_timeout_test.rs b/rs/tests/consensus/tecdsa/tecdsa_signature_timeout_test.rs index 81285874790..eb2de9fed5e 100644 --- a/rs/tests/consensus/tecdsa/tecdsa_signature_timeout_test.rs +++ b/rs/tests/consensus/tecdsa/tecdsa_signature_timeout_test.rs @@ -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()) }) ) }