Skip to content

Commit be30b8a

Browse files
committed
put CSOT options on runCursorCommand
1 parent 6f3beb6 commit be30b8a

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

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

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,11 @@ import { join } from 'path';
33
import { loadSpecTests } from '../../spec';
44
import { runUnifiedSuite } from '../../tools/unified-spec-runner/runner';
55

6-
const enabled = [
7-
'override-collection-timeoutMS',
8-
'override-database-timeoutMS',
9-
'override-operation-timeoutMS',
10-
'retryability-legacy-timeouts',
11-
'retryability-timeoutMS',
12-
'runCursorCommand',
13-
'close-cursors',
14-
'non-tailable-cursors',
15-
'global-timeoutMS',
16-
'legacy-timeouts',
17-
'command-execution',
18-
'cursors',
19-
'error-transformations'
20-
];
21-
226
const skipped = {
237
bulkWrite: 'TODO(NODE-6274)',
248
'change-streams': 'TODO(NODE-6035)',
259
'convenient-transactions': 'TODO(NODE-5687)',
26-
//'deprecated-options': 'TODO(NODE-5689)',
10+
'deprecated-options': 'TODO(NODE-5689)',
2711
'gridfs-advanced': 'TODO(NODE-6275)',
2812
'gridfs-delete': 'TODO(NODE-6275)',
2913
'gridfs-download': 'TODO(NODE-6275)',

test/tools/unified-spec-runner/operations.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,9 @@ operations.set('runCursorCommand', async ({ entities, operation }: OperationFunc
772772
const { command, ...opts } = operation.arguments!;
773773
const cursor = db.runCursorCommand(command, {
774774
readPreference: ReadPreference.fromOptions({ readPreference: opts.readPreference }),
775-
session: opts.session
775+
session: opts.session,
776+
timeoutMode: opts.timeoutMode,
777+
timeoutMS: opts.timeoutMS
776778
});
777779

778780
if (!Number.isNaN(+opts.batchSize)) cursor.setBatchSize(+opts.batchSize);

0 commit comments

Comments
 (0)