Skip to content

Commit c20c34d

Browse files
lint + add skip reasons
1 parent e995bec commit c20c34d

6 files changed

Lines changed: 8 additions & 13 deletions

File tree

global.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ declare global {
120120
* beforeEach(() => {
121121
* if ('some condition') {
122122
* this.currentTest.skipReason = 'requires <run condition> to run';
123-
* this;
123+
* this.skip();
124124
* }
125125
* });
126126
* ```

test/integration/change-streams/change_stream.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ describe('Change Streams', function () {
12731273
'changeStream should close if cursor id for initial aggregate is Long.ZERO',
12741274
{
12751275
requires: {
1276-
predicate: () => (process.env.SSL === 'ssl' ? 'test requries no TLS' : true)
1276+
tls: 'disabled'
12771277
}
12781278
},
12791279
async function () {

test/integration/connection-monitoring-and-pooling/connection_monitoring_and_pooling.spec.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const INTERRUPT_IN_USE_SKIPPED_TESTS: SkipDescription[] = [
3939
}
4040
];
4141

42-
describe('Connection Monitoring and Pooling Spec Tests (Integration) - cmap-format', function () {
42+
describe.only('Connection Monitoring and Pooling Spec Tests (Integration) - cmap-format', function () {
4343
const tests: CmapTest[] = loadSpecTests('connection-monitoring-and-pooling', 'cmap-format');
4444

4545
runCmapTestSuite(tests, {

test/integration/retryable-reads/retryable_reads.spec.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('Retryable Reads (unified)', function () {
2727
}
2828
}
2929

30-
if (isTLSEnabled) return 'TODO(NODE-XXXX): ...';
30+
if (isTLSEnabled) return 'TODO(NODE-7408): fix these tests when TLS is enabled';
3131

3232
return false;
3333
});

test/integration/retryable-writes/retryable_writes.spec.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { loadSpecTests } from '../../spec';
44
import { isTLSEnabled } from '../../tools/runner/filters/tls_filter';
55
import { runUnifiedSuite } from '../../tools/unified-spec-runner/runner';
66

7-
const filter = () => (isTLSEnabled ? 'TODO(NODE-XXXX): ...' : false);
7+
const filter = () =>
8+
isTLSEnabled ? 'TODO(NODE-7408): fix these tests when TLS is enabled' : false;
89
describe('Retryable Writes (unified)', function () {
910
runUnifiedSuite(loadSpecTests(path.join('retryable-writes', 'unified')), filter);
1011
});

test/tools/cmap_spec_runner.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -532,14 +532,7 @@ export function runCmapTestSuite(
532532
throw new Error('Failed to retrieve server for test');
533533
}
534534

535-
const poolOptions = {
536-
...(this.configuration.isLoadBalanced ? { loadBalanced: true } : {}),
537-
...getTLSOptions()
538-
};
539-
540-
delete poolOptions.tls;
541-
542-
console.error({ poolOptions });
535+
const poolOptions = this.configuration.isLoadBalanced ? { loadBalanced: true } : {};
543536

544537
threadContext = new ThreadContext(server, hostAddress, poolOptions, {
545538
injectPoolStats: !!options?.injectPoolStats
@@ -566,6 +559,7 @@ export function runCmapTestSuite(
566559
test.description,
567560
{
568561
requires: {
562+
// TODO(NODE-7408): fix these tests when TLS is enabled
569563
tls: 'disabled'
570564
}
571565
},

0 commit comments

Comments
 (0)