aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2016-06-22 23:39:21 +0200
committerAnna Henningsen <anna@addaleax.net>2016-06-25 05:49:32 +0200
commitefc31503b39afc27c878abbeca15819ace20a663 (patch)
tree1b9d277dac1d3df57d06a11d65d02bccb7b4c185
parentc96457403eef895a5541429404207c1985df240f (diff)
downloadandroid-node-v8-efc31503b39afc27c878abbeca15819ace20a663.tar.gz
android-node-v8-efc31503b39afc27c878abbeca15819ace20a663.tar.bz2
android-node-v8-efc31503b39afc27c878abbeca15819ace20a663.zip
test: fix flaky test-vm-timeout
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 <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
-rw-r--r--test/parallel/test-vm-timeout.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-vm-timeout.js b/test/parallel/test-vm-timeout.js
index b4dd57bb54..d595bac4c3 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./);