commit 74097b0d66f4c2372a412d7898e61f17819268d1
Author: Tom Hughes <tom@compton.nu>
Date: Sat Jan 16 14:58:56 2016 +0000
Increase timeouts for slower machines
diff --git a/test/exports.js b/test/exports.js
index c17993a..c136cf7 100644
--- a/test/exports.js
+++ b/test/exports.js
@@ -18,10 +18,10 @@ test('exports', function (t) {
setTimeout(function () {
child.stdin.write('\n');
- }, 100)
+ }, 1000)
setTimeout(function () {
child.stdin.end('55\n');
- }, 200)
+ }, 2000)
child.on('close', function () {
console.error('output=%j', output)
diff --git a/test/fn.js b/test/fn.js
index 899ebed..dfd516b 100644
--- a/test/fn.js
+++ b/test/fn.js
@@ -38,13 +38,13 @@ test('prompt callback param', function (t) {
setTimeout(function () {
child.stdin.write('\n')
- }, 100)
+ }, 1000)
setTimeout(function () {
child.stdin.write('55\n')
- }, 150)
+ }, 1500)
setTimeout(function () {
child.stdin.end('async prompt\n')
- }, 200)
+ }, 2000)
})
function child () {
diff --git a/test/simple.js b/test/simple.js
index 034a864..ffdf501 100644
--- a/test/simple.js
+++ b/test/simple.js
@@ -22,9 +22,9 @@ test('simple', function (t) {
setTimeout(function () {
process.stdin.emit('data', '\n');
- }, 100);
+ }, 1000);
setTimeout(function () {
process.stdin.emit('data', '55\n');
- }, 200);
+ }, 2000);
});
diff --git a/test/validate.js b/test/validate.js
index a120681..d37ec3c 100644
--- a/test/validate.js
+++ b/test/validate.js
@@ -13,8 +13,8 @@ test('validate', function (t) {
})
setTimeout(function () {
process.stdin.emit('data', 'not cool\n')
- }, 100)
+ }, 1000)
setTimeout(function () {
process.stdin.emit('data', 'cool\n')
- }, 200)
+ }, 2000)
})