Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit 26470f7

Browse files
committed
Fixes the broken build
The fix was to use a timer instead of process.nextTick to send command prompt answers via stdin. We also updated Travis CI to no longer test for Node.js 0.10.x since Hapi.js requires Node.js 4.x. Patch-By: He Who Should Not Be Named
1 parent 3a000dc commit 26470f7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ language: node_js
22
node_js:
33
- "stable"
44
- "0.12"
5-
- "0.10"
65
sudo: false

test/commands/project/project.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,10 +487,10 @@ describe('project', function() {
487487
fs.appendFileSync(path.resolve(projPath, 'test/api/client/hello-test.js'), '/*should not be here*/');
488488
var prevFile = fs.readFileSync(path.resolve(projPath, 'test/api/client/hello-test.js'), {encoding: 'utf8'});
489489

490-
process.nextTick(function mockResponse() {
490+
setTimeout(function () {
491491
stdin.send('n\n');
492492
stdin.send('n\n');
493-
});
493+
}, 250);
494494

495495
project.generateTest(projPath, {}, function(err) {
496496
fs.existsSync(path.resolve(projPath, 'test/api/client/hello-test.js')).should.be.ok;

0 commit comments

Comments
 (0)