Wait for code to finish w/ crappy set timeout 7
This commit is contained in:
parent
8f1d54504a
commit
6c8c0ea658
|
@ -12,7 +12,7 @@ import * as util from "./util.js";
|
||||||
import { bash, getUUID, logError } from "./util.js";
|
import { bash, getUUID, logError } from "./util.js";
|
||||||
|
|
||||||
const allSessions = new Set();
|
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 {
|
export class Session {
|
||||||
get homedir() {
|
get homedir() {
|
||||||
return "/home/riju/src";
|
return "/home/riju/src";
|
||||||
|
@ -237,7 +237,7 @@ export class Session {
|
||||||
await this.runCode(msg.code, msg.expectedOutput);
|
await this.runCode(msg.code, msg.expectedOutput);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.term.pty.stdout.emit("data", TEST_RUN_FINISHED);
|
this.term.pty.stdout.emit("data", TEST_RUN_FINISHED);
|
||||||
}, 1500);
|
}, 2000);
|
||||||
break;
|
break;
|
||||||
case "formatCode":
|
case "formatCode":
|
||||||
if (typeof msg.code !== "string") {
|
if (typeof msg.code !== "string") {
|
||||||
|
|
Loading…
Reference in New Issue