Skip to content

Commit

Permalink
extend the error range of a timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
hmsk committed Jul 15, 2024
1 parent 63cf039 commit 2c96202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/quickjs_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class WithPlainVM < QuickjsVmTest

started = Time.now.to_f * 1000
assert_raise_with_message(RuntimeError, /interrupted/) { vm.eval_code("while(1) {}") }
assert_in_delta(started + 200, Time.now.to_f * 1000, 5) # within 5 msec
assert_in_delta(started + 200, Time.now.to_f * 1000, 10) # within 10 msec
end

class GlobalFunction < QuickjsVmTest
Expand Down

0 comments on commit 2c96202

Please sign in to comment.