Browse Source

Fix a fuzz failure due to changing errors (#5384)

Fix the `instantiate-many` fuzzer from a recent regression introduced
in #5347 where an error message changed slightly. Ideally a concrete
error type would be tested for here but that's deferred to a future PR.
pull/3977/merge
Alex Crichton 2 years ago
committed by GitHub
parent
commit
4a0cefb1aa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      crates/fuzzing/src/oracles.rs

2
crates/fuzzing/src/oracles.rs

@ -315,7 +315,7 @@ pub fn instantiate_with_dummy(store: &mut Store<StoreLimits>, module: &Module) -
}
// Also allow failures to instantiate as a result of hitting instance limits
if string.contains("concurrent instances has been reached") {
if string.contains("maximum concurrent instance limit") {
log::debug!("failed to instantiate: {}", string);
return None;
}

Loading…
Cancel
Save