Skip to content

Commit 3abf598

Browse files
committed
Remove get-port from tests
Just let the operating system pick a port. Prevents test flakiness due to port conflicts.
1 parent 6c0a8fe commit 3abf598

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@
114114
"eslint": "^9.12.0",
115115
"eslint-plugin-import": "^2.30.0",
116116
"eslint-plugin-n": "^17.10.2",
117-
"get-port": "^7.0.0",
118117
"globals": "^17.0.0",
119118
"nock": "^14.0.0",
120119
"nodemon": "^3.0.1",

test/utils/createUwave.mjs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
import getPort from 'get-port';
21
import uwave from 'u-wave-core';
32
import testPlugin from './plugin.mjs';
43

54
async function createUwave(name, options) {
6-
const port = await getPort();
7-
85
const uw = uwave({
96
...options,
10-
port,
117
sqlite: ':memory:',
128
secret: Buffer.from(`secret_${name}`),
139
logger: {

0 commit comments

Comments
 (0)