Skip to content

Commit fb8a397

Browse files
authored
fix(gui): stop endlessly restarting tests (#412)
1 parent f283ee9 commit fb8a397

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/gui/server.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ exports.start = async ({paths, hermione, guiApi, configs}) => {
5454
res.json(app.data);
5555
});
5656

57-
server.post('/run', async (req, res) => {
57+
server.post('/run', (req, res) => {
5858
try {
59-
await app.run(req.body);
59+
// do not wait for completion so that response does not hang and browser does not restart it by timeout
60+
app.run(req.body);
6061
res.sendStatus(OK);
6162
} catch (e) {
6263
res.status(INTERNAL_SERVER_ERROR).send(`Error while trying to run tests: ${e.message}`);

0 commit comments

Comments
 (0)