File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
stacks-common/src/util/secp256k1 Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -609,22 +609,19 @@ mod tests {
609
609
let key = Secp256k1PublicKey :: from_hex ( fixture. public_key ) . unwrap ( ) ;
610
610
let signature = MessageSignature :: from_raw ( & hex_bytes ( fixture. signature ) . unwrap ( ) ) ;
611
611
let ver_res = key. verify ( & hex_bytes ( fixture. data ) . unwrap ( ) , & signature) ;
612
- #[ allow( clippy:: assertions_on_constants) ]
613
612
match ( ver_res, fixture. result ) {
614
613
( Ok ( true ) , Ok ( true ) ) => { }
615
614
( Ok ( false ) , Ok ( false ) ) => { }
616
615
( Err ( e1) , Err ( e2) ) => assert_eq ! ( e1, e2) ,
617
616
( Err ( e1) , _) => {
618
617
test_debug ! ( "Failed to verify signature: {}" , e1) ;
619
- assert ! (
620
- false ,
618
+ panic ! (
621
619
"failed fixture (verification: {:?}): {:#?}" ,
622
620
& ver_res, & fixture
623
621
) ;
624
622
}
625
623
( _, _) => {
626
- assert ! (
627
- false ,
624
+ panic ! (
628
625
"failed fixture (verification: {:?}): {:#?}" ,
629
626
& ver_res, & fixture
630
627
) ;
You can’t perform that action at this time.
0 commit comments