Skip to content

Commit abc1cfd

Browse files
committed
skipping spec tests
1 parent 679c02c commit abc1cfd

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

test/integration/client-side-operations-timeout/client_side_operations_timeout.spec.test.ts

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { join } from 'path';
33
import { loadSpecTests } from '../../spec';
44
import { runUnifiedSuite } from '../../tools/unified-spec-runner/runner';
55

6-
const skipped = {
6+
const skippedSpecs = {
77
bulkWrite: 'TODO(NODE-6274)',
88
'change-streams': 'TODO(NODE-6035)',
99
'convenient-transactions': 'TODO(NODE-5687)',
@@ -20,20 +20,31 @@ const skipped = {
2020
'tailable-non-awaitData': 'TODO(NODE-6035)'
2121
};
2222

23-
const bulkWriteOperations =
24-
/timeoutMS applies to whole operation, not individual attempts - (bulkWrite|insertMany) on .*/;
23+
const skippedTests = {
24+
'timeoutMS can be configured on a MongoClient - insertMany on collection': 'TODO(NODE-6274)',
25+
'timeoutMS can be configured on a MongoClient - bulkWrite on collection': 'TODO(NODE-6274)',
26+
'timeoutMS can be configured on a MongoClient - createChangeStream on client': 'TODO(NODE-6305)',
27+
'timeoutMS applies to whole operation, not individual attempts - createChangeStream on client':
28+
'TODO(NODE-6305)',
29+
'Tailable cursor iteration timeoutMS is refreshed for getMore - failure': 'TODO(NODE-6305)',
30+
'Tailable cursor awaitData iteration timeoutMS is refreshed for getMore - failure':
31+
'TODO(NODE-6305)',
32+
'timeoutMS applies to whole operation, not individual attempts - insertMany on collection':
33+
'TODO(NODE-6274)',
34+
'timeoutMS applies to whole operation, not individual attempts - bulkWrite on collection':
35+
'TODO(NODE-6274)'
36+
};
2537

2638
describe('CSOT spec tests', function () {
2739
const specs = loadSpecTests(join('client-side-operations-timeout'));
2840
for (const spec of specs) {
2941
for (const test of spec.tests) {
30-
if (skipped[spec.name] != null) {
31-
test.skipReason = skipped[spec.name];
42+
if (skippedSpecs[spec.name] != null) {
43+
test.skipReason = skippedSpecs[spec.name];
44+
}
45+
if (skippedTests[test.description] != null) {
46+
test.skipReason = skippedTests[test.description];
3247
}
33-
34-
if (bulkWriteOperations.test(test.description))
35-
test.skipReason =
36-
'TODO(NODE-6274): update test runner to check errorResponse field of MongoBulkWriteError in isTimeoutError assertion';
3748
}
3849
}
3950

0 commit comments

Comments
 (0)