ci: crash-test — inject panic in qr_decode to prove the fuzz job fails on a crash (REVERT BEFORE MERGE)
This commit is contained in:
parent
2cf9e8c7c6
commit
b76bf46100
1 changed files with 2 additions and 2 deletions
|
|
@ -23,6 +23,6 @@ fuzz_target!(|data: &[u8]| {
|
||||||
assert!(payload.onion.ends_with(".onion"));
|
assert!(payload.onion.ends_with(".onion"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Determinism: the same invite must decode to the same answer.
|
// Crash test: the CI job must go red when a target panics.
|
||||||
assert_eq!(qr::decode(&raw).is_ok(), qr::decode(&raw).is_ok());
|
panic!("ci crash-test — remove before merge");
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue