From efc31503b39afc27c878abbeca15819ace20a663 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Wed, 22 Jun 2016 23:39:21 +0200 Subject: [PATCH] test: fix flaky test-vm-timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Likely fix the flaky parallel/test-vm-timeout. Increase the outer timeout in the test checking for nested timeouts with `vm` scripts so that its firing won’t interfere with the inner timeout. Fixes: https://github.com/nodejs/node/issues/6727 PR-URL: https://github.com/nodejs/node/pull/7373 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig --- test/parallel/test-vm-timeout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-vm-timeout.js b/test/parallel/test-vm-timeout.js index b4dd57bb54d234..d595bac4c32324 100644 --- a/test/parallel/test-vm-timeout.js +++ b/test/parallel/test-vm-timeout.js @@ -29,6 +29,6 @@ assert.throws(function() { vm.runInNewContext('while(true) {}', context, { timeout: timeout }); } }; - vm.runInNewContext('runInVM(10)', context, { timeout: 100 }); + vm.runInNewContext('runInVM(10)', context, { timeout: 10000 }); throw new Error('Test 5 failed'); }, /Script execution timed out./);