Skip to content

Commit b45cd1b

Browse files
fix(tests): windows path resolution
Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
1 parent e891103 commit b45cd1b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/builtins/fetch.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ import { createServer } from 'node:http';
44
import { strictEqual, ok } from 'node:assert';
55

66
import { maybeWindowsPath } from '../../src/platform.js';
7+
import { getRandomPort } from '../util.js';
78

89
const FETCH_URL = 'http://localhost';
910

1011
export const state = async () => {
11-
const { getRandomPort } = await import(
12-
maybeWindowsPath(fileURLToPath(new URL('../util.js', import.meta.url)))
13-
);
1412
const port = await getRandomPort();
1513
return { port };
1614
};

0 commit comments

Comments
 (0)