Skip to content

Commit

Permalink
fix imports on end2endserver
Browse files Browse the repository at this point in the history
  • Loading branch information
bubonicfred committed Jun 19, 2024
1 parent 5d6afa3 commit f63a3e0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/support/end2end-server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { createInterface, on } from "readline";

import run from "./lib/task.js";

import readline from "readline";
function logTask(taskname) {
return (data) => {
process.stdout.write(`${taskname}: ${data}`);
Expand Down Expand Up @@ -32,12 +30,12 @@ function shutdown() {
}

if (process.platform === "win32") {
createInterface({
readline.createInterface({
input: process.stdin,
output: process.stdout,
});

on("SIGINT", shutdown);
readline.on("SIGINT", shutdown);
}

process.on("uncaughtException", shutdown);
Expand Down

0 comments on commit f63a3e0

Please sign in to comment.