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

Commit 0b00202

Browse files
committed
added 250ms timeout to setTimeout
1 parent d9b5eff commit 0b00202

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/commands/project/project.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,10 @@ describe('project', function() {
453453

454454
var prevFile = fs.readFileSync(path.resolve(projPath, 'test/api/client/hello-test.js'), {encoding: 'utf8'});
455455

456-
setTimeout(function () {
456+
setTimeout(function mockResponse() {
457457
stdin.send('y\n');
458458
stdin.send('y\n');
459-
});
459+
}, 250);
460460

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

0 commit comments

Comments
 (0)