Skip to content

Commit 216af9c

Browse files
committed
errno
1 parent 755c925 commit 216af9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/e2e/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { type ChildProcess, exec, spawn } from "node:child_process";
22
import { randomUUID } from "node:crypto";
3+
import net from "node:net";
34
import path from "node:path";
45
import { Duplex } from "node:stream";
5-
import net from "node:net";
66
import { type BrowserContext, type Page, expect, test } from "@playwright/test";
77
import { API } from "api/api";
88
import type {
@@ -711,7 +711,7 @@ async function waitForPort(port: number, host = "0.0.0.0", timeout = 5000): Prom
711711
function isPortAvailable(port: number, host = "0.0.0.0"): Promise<boolean> {
712712
return new Promise((resolve) => {
713713
const probe = net.createServer()
714-
.once('error', (err: any) => {
714+
.once('error', (err: NodeJS.ErrnoException) => {
715715
if (err.code === 'EADDRINUSE') {
716716
resolve(false); // port is in use
717717
} else {

0 commit comments

Comments
 (0)