Skip to content

Commit

Permalink
🆕 Make specs faster
Browse files Browse the repository at this point in the history
  • Loading branch information
steelbrain committed Feb 23, 2016
1 parent 000e660 commit 9998b39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/fixtures/timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
setTimeout(function () {
// We should be killed at 10 seconds, if we survive 15 then it's an error
process.exit(1)
}, 15 * 1000)
}, 3000)
2 changes: 1 addition & 1 deletion spec/helper-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe('linter helpers', function () {
it('times the process out after certain time', function () {
waitsForAsync(async function () {
try {
await helpers.execNode(timeoutScript)
await helpers.execNode(timeoutScript, [], { timeout: 1000 })
expect(false).toBe(true)
} catch (_) {
expect(_.message).toContain('timed out')
Expand Down

0 comments on commit 9998b39

Please sign in to comment.