From 6c8c0ea658987750e82dd7cf9608995b931fa1ca Mon Sep 17 00:00:00 2001 From: plondon Date: Sun, 24 Oct 2021 17:25:37 -0400 Subject: [PATCH] Wait for code to finish w/ crappy set timeout 7 --- backend/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/api.js b/backend/api.js index 44d0856..4d64cd6 100644 --- a/backend/api.js +++ b/backend/api.js @@ -12,7 +12,7 @@ import * as util from "./util.js"; import { bash, getUUID, logError } from "./util.js"; const allSessions = new Set(); -export const TEST_RUN_FINISHED = "\nTest run finished!\n"; +export const TEST_RUN_FINISHED = "\r\nTest run finished!\r\n"; export class Session { get homedir() { return "/home/riju/src"; @@ -237,7 +237,7 @@ export class Session { await this.runCode(msg.code, msg.expectedOutput); setTimeout(() => { this.term.pty.stdout.emit("data", TEST_RUN_FINISHED); - }, 1500); + }, 2000); break; case "formatCode": if (typeof msg.code !== "string") {