Skip to content

Commit 6741089

Browse files
committed
test: increase timeout of waitsFor
1 parent cc13351 commit 6741089

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec/runner-spec.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('Runner', () => {
2525
this.runner.run(this.command, ['./spec/fixtures/outputTest.js'], {});
2626
});
2727

28-
waitsFor(() => this.output !== null, 'File should execute', 500);
28+
waitsFor(() => this.output !== null, 'File should execute', 2000);
2929

3030
runs(() => expect(this.output).toEqual({ message: 'hello\n' }));
3131
});
@@ -39,7 +39,7 @@ describe('Runner', () => {
3939
this.runner.run(this.command, ['./spec/fixtures/ioTest.js'], {}, 'hello');
4040
});
4141

42-
waitsFor(() => this.output !== null, 'File should execute', 500);
42+
waitsFor(() => this.output !== null, 'File should execute', 2000);
4343

4444
runs(() => expect(this.output).toEqual({ message: 'TEST: hello\n' }));
4545
});
@@ -53,7 +53,7 @@ describe('Runner', () => {
5353
this.runner.run(this.command, ['./spec/fixtures/outputTest.js'], {});
5454
});
5555

56-
waitsFor(() => this.exited, 'Should receive exit callback', 500);
56+
waitsFor(() => this.exited, 'Should receive exit callback', 2000);
5757
});
5858

5959
it('notifies about writing to stderr', () => {
@@ -65,7 +65,7 @@ describe('Runner', () => {
6565
this.runner.run(this.command, ['./spec/fixtures/throw.js'], {});
6666
});
6767

68-
waitsFor(() => this.failedEvent, 'Should receive failure callback', 500);
68+
waitsFor(() => this.failedEvent, 'Should receive failure callback', 2000);
6969

7070
runs(() => expect(this.failedEvent.message).toMatch(/kaboom/));
7171
});
@@ -79,7 +79,7 @@ describe('Runner', () => {
7979
this.runner.run(this.command, ['./spec/fixtures/stdinEndTest.js'], {}, 'unused input');
8080
});
8181

82-
waitsFor(() => this.output !== null, 'File should execute', 500);
82+
waitsFor(() => this.output !== null, 'File should execute', 2000);
8383

8484
runs(() => expect(this.output).toEqual({ message: 'stdin terminated\n' }));
8585
});

0 commit comments

Comments
 (0)