Skip to content

Commit 2ae1a50

Browse files
authored
Try to fix flakey timing test (#561)
1 parent b389f5b commit 2ae1a50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/integration/epoch_interruption_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ module Wasmtime
9595

9696
instance = Instance.new(store_deadline_1, mod, [f])
9797
# GC stress makes Ruby very slow; we always tick before intering Wasm.
98-
engine.start_epoch_interval(1) unless GC.stress
98+
# Using `2` since `1` seems to cause rare failures.
99+
engine.start_epoch_interval(2) unless GC.stress
99100
expect { instance.invoke("f") }.to raise_error(Trap)
100101
expect(host_call_finished).to be true
101102
end

0 commit comments

Comments
 (0)