Skip to content

Commit

Permalink
Disable trapping Wasmtime tests due to concurrency issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
olonho committed Apr 2, 2021
1 parent 0172ed3 commit e65354e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime/near-vm-runner/src/tests/error_cases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ fn div_by_zero_contract() -> Vec<u8> {
#[test]
fn test_div_by_zero_contract() {
with_vm_variants(|vm_kind: VMKind| {
match vm_kind {
VMKind::Wasmer0 | VMKind::Wasmer1 => {}
// All contracts leading to hardware traps can not run concurrently on Wasmtime and Wasmer,
// Restore, once get rid of Wasmer 0.x.
VMKind::Wasmtime => return,
}
assert_eq!(
make_simple_contract_call_vm(&div_by_zero_contract(), "hello", vm_kind),
(
Expand Down

0 comments on commit e65354e

Please sign in to comment.