There was an error while loading. Please reload this page.
1 parent 3306897 commit 559a11eCopy full SHA for 559a11e
1 file changed
packages/neuron-wallet/tests-e2e/application/server.js
@@ -29,3 +29,10 @@ server.on('clientError', (err, socket) => {
29
socket.end('HTTP/1.1 400 Bad Request\r\n\r\n');
30
});
31
server.listen(22333);
32
+
33
+// Make sure to exit the program in the event of an error
34
+const util = require('util');
35
+const setTimeoutPromise = util.promisify(setTimeout);
36
+setTimeoutPromise(1000 * 60 * 0.4).then(() => {
37
+ process.exit(1)
38
+});
0 commit comments