Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: fix tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Sep 5, 2019
1 parent e1346b5 commit 84a8b34
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/cli/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ const daemonReady = (daemon, fn) => {
}
})
daemon.stderr.on('data', () => reject(new Error('Daemon didnt start')))
daemon.then(() => resolve(r)).catch(reject)
daemon.then(() => resolve(r)).catch(err => {
if (r && err.killed) {
return resolve(r)
}

reject(err)
})
})

return p
Expand Down

0 comments on commit 84a8b34

Please sign in to comment.