Skip to content

Commit

Permalink
fix(e2e): Make sure to exit server
Browse files Browse the repository at this point in the history
  • Loading branch information
cezres committed Aug 16, 2019
1 parent 3306897 commit 559a11e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/neuron-wallet/tests-e2e/application/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,10 @@ server.on('clientError', (err, socket) => {
socket.end('HTTP/1.1 400 Bad Request\r\n\r\n');
});
server.listen(22333);

// Make sure to exit the program in the event of an error
const util = require('util');
const setTimeoutPromise = util.promisify(setTimeout);
setTimeoutPromise(1000 * 60 * 0.4).then(() => {
process.exit(1)
});

0 comments on commit 559a11e

Please sign in to comment.