Skip to content

Commit 6d8ad33

Browse files
test(NODE-5610): unskip uri invalid port (zero) with hostname/IP literal tests on Node 20+ (#4096)
1 parent ca2bfb0 commit 6d8ad33

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Diff for: test/unit/connection_string.spec.test.ts

-18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { satisfies } from 'semver';
2-
31
import { loadSpecTests } from '../spec';
42
import { executeUriValidationTest } from '../tools/uri_spec_runner';
53

@@ -11,22 +9,6 @@ const skipTests = [
119
describe('Connection String spec tests', function () {
1210
const suites = loadSpecTests('connection-string');
1311

14-
beforeEach(function () {
15-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
16-
const test = this.currentTest!;
17-
18-
const skippedTests = [
19-
'Invalid port (zero) with IP literal',
20-
'Invalid port (zero) with hostname'
21-
];
22-
test.skipReason =
23-
satisfies(process.version, '>=20.0.0') && skippedTests.includes(test.title)
24-
? 'TODO(NODE-5666): fix failing unit tests on Node20+'
25-
: undefined;
26-
27-
if (test.skipReason) this.skip();
28-
});
29-
3012
for (const suite of suites) {
3113
describe(suite.name, function () {
3214
for (const test of suite.tests) {

0 commit comments

Comments
 (0)