@@ -10,7 +10,6 @@ use aws_lc_rs::{
10
10
signature:: { self , EcdsaKeyPair , KeyPair , Signature , UnparsedPublicKey } ,
11
11
test, test_file,
12
12
} ;
13
- use mirai_annotations:: unrecoverable;
14
13
15
14
#[ test]
16
15
fn ecdsa_traits ( ) {
@@ -93,9 +92,9 @@ fn ecdsa_from_pkcs8_test() {
93
92
match ( EcdsaKeyPair :: from_pkcs8 ( this_asn1, & input) , error) {
94
93
( Ok ( _) , None ) => ( ) ,
95
94
( Err ( e) , None ) => {
96
- unrecoverable ! ( "Failed with error \" {}\" , but expected to succeed" , e) ;
95
+ panic ! ( "Failed with error \" {}\" , but expected to succeed" , e) ;
97
96
}
98
- ( Ok ( _) , Some ( e) ) => unrecoverable ! ( "Succeeded, but expected error \" {}\" " , e) ,
97
+ ( Ok ( _) , Some ( e) ) => panic ! ( "Succeeded, but expected error \" {}\" " , e) ,
99
98
( Err ( actual) , Some ( expected) ) => assert_eq ! ( format!( "{actual}" ) , expected) ,
100
99
} ;
101
100
@@ -230,7 +229,7 @@ fn test_signature_ecdsa_verify_fixed(data_file: test::File) {
230
229
( "secp256k1" , "SHA256" ) => & signature:: ECDSA_P256K1_SHA256_FIXED ,
231
230
( "secp256k1" , "SHA3-256" ) => & signature:: ECDSA_P256K1_SHA3_256_FIXED ,
232
231
_ => {
233
- unrecoverable ! ( "Unsupported curve+digest: {}+{}" , curve_name, digest_name) ;
232
+ panic ! ( "Unsupported curve+digest: {}+{}" , curve_name, digest_name) ;
234
233
}
235
234
} ;
236
235
0 commit comments