ci: crash-proof — inject panic in qr_decode to prove fuzz job fails red (THROWAWAY, remove before merge)
This commit is contained in:
parent
f06073e7dc
commit
81cb89f559
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-PROOF: the CI fuzz job MUST go red when a target panics.
|
||||||
assert_eq!(qr::decode(&raw).is_ok(), qr::decode(&raw).is_ok());
|
panic!("ci crash-proof — throwaway branch, remove before merge");
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue