Pass tests in release mode
parent
508aa05cb9
commit
42754635ba
|
@ -3,5 +3,9 @@ use qadapt::enter_protected;
|
|||
#[test]
|
||||
#[should_panic]
|
||||
fn guard_without_initialization() {
|
||||
enter_protected();
|
||||
if cfg!(debug_assertions) {
|
||||
enter_protected();
|
||||
} else {
|
||||
panic!("Intentional")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue