summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2009-11-18 15:54:27 +0100
committerRyan Dahl <ry@tinyclouds.org>2009-11-18 15:55:02 +0100
commit0b441462ab626cc7e582921b54143a22dbe896d1 (patch)
treeaf480bd941cc1e936b56ce3b8cfd42e263d6701c /test
parent728d8a37f471afaeaa6af19823f9da8c41f1f65a (diff)
downloadnodejs-0b441462ab626cc7e582921b54143a22dbe896d1.tar.gz
nodejs-0b441462ab626cc7e582921b54143a22dbe896d1.tar.bz2
nodejs-0b441462ab626cc7e582921b54143a22dbe896d1.zip
Speed up test-wait-ordering.js
Diffstat (limited to 'test')
-rw-r--r--test/mjsunit/test-wait-ordering.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/mjsunit/test-wait-ordering.js b/test/mjsunit/test-wait-ordering.js
index 2937fa7bb..d1276a56d 100644
--- a/test/mjsunit/test-wait-ordering.js
+++ b/test/mjsunit/test-wait-ordering.js
@@ -11,6 +11,7 @@ function timer (t) {
order = 0;
var a = new Date();
function test_timeout_order(delay, desired_order) {
+ delay *= 10;
timer(0).addCallback(function() {
timer(delay).wait()
var b = new Date();
@@ -22,9 +23,9 @@ function test_timeout_order(delay, desired_order) {
// assertEquals(desired_order, order);
});
}
-test_timeout_order(10000, 6); // Why does this have the proper order??
-test_timeout_order(5000, 5);
-test_timeout_order(4000, 4);
-test_timeout_order(3000, 3);
-test_timeout_order(2000, 2);
-test_timeout_order(1000, 1);
+test_timeout_order(10, 6); // Why does this have the proper order??
+test_timeout_order(5, 5);
+test_timeout_order(4, 4);
+test_timeout_order(3, 3);
+test_timeout_order(2, 2);
+test_timeout_order(1, 1);