Skip to content

Commit

Permalink
make memory test even *less* flakey
Browse files Browse the repository at this point in the history
  • Loading branch information
nightpool committed Jul 15, 2020
1 parent 323eee4 commit 2cf69e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/mini_racer_test.rb
Expand Up @@ -299,7 +299,7 @@ def test_max_memory
end

def test_max_memory_for_call
context = MiniRacer::Context.new(max_memory: 200_000_000)
context = MiniRacer::Context.new(max_memory: 100_000_000)
context.eval(<<~JS)
let s;
function memory_test() {
Expand All @@ -319,7 +319,7 @@ def test_max_memory_for_call
s = val;
}
JS
context.call('set_s', 2000)
context.call('set_s', 1000)
assert_raises(MiniRacer::V8OutOfMemoryError) { context.call('memory_test') }
s = context.eval('s')
assert_operator(s, :>, 100_000)
Expand Down

0 comments on commit 2cf69e2

Please sign in to comment.