Wait for code to finish w/ crappy set timeout 6
This commit is contained in:
parent
f7b1c2bceb
commit
8f1d54504a
|
@ -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 = "Test run finished!\n";
|
export const TEST_RUN_FINISHED = "\nTest run finished!\n";
|
||||||
export class Session {
|
export class Session {
|
||||||
get homedir() {
|
get homedir() {
|
||||||
return "/home/riju/src";
|
return "/home/riju/src";
|
||||||
|
@ -235,11 +235,9 @@ export class Session {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
await this.runCode(msg.code, msg.expectedOutput);
|
await this.runCode(msg.code, msg.expectedOutput);
|
||||||
if (this.config.repl) {
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.term.pty.stdin.write(TEST_RUN_FINISHED);
|
this.term.pty.stdout.emit("data", TEST_RUN_FINISHED);
|
||||||
}, 1500);
|
}, 1500);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case "formatCode":
|
case "formatCode":
|
||||||
if (typeof msg.code !== "string") {
|
if (typeof msg.code !== "string") {
|
||||||
|
|
Loading…
Reference in New Issue