actually fail if a (seeded) sampler return None
This is not supposed to happen, as only replayed sampler/fuzzer can stop. Signed-off-by: KtorZ <5680256+KtorZ@users.noreply.github.com>
This commit is contained in:
parent
d87e7f808f
commit
497f663513
|
@ -531,8 +531,9 @@ impl Benchmark {
|
|||
}
|
||||
|
||||
Ok(None) => {
|
||||
break;
|
||||
panic!("A seeded PRNG returned 'None' which indicates a sampler is ill-formed and implemented wrongly; please contact library's authors.");
|
||||
}
|
||||
|
||||
Err(e) => {
|
||||
results.push(BenchmarkResult {
|
||||
test: self.clone(),
|
||||
|
|
Loading…
Reference in New Issue