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.
This commit is contained in:
Alex Crichton
2022-12-06 11:41:32 -06:00
committed by GitHub
parent 353a681671
commit 4a0cefb1aa

View File

@@ -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;
}