Skip to content

Commit eadcff3

Browse files
committed
skip test on incompatible server versions
1 parent 88ea7df commit eadcff3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ describe('CSOT spec prose tests', function () {
219219
});
220220

221221
context('5. Blocking Iteration Methods', () => {
222+
const metadata = { requires: { mongodb: '>=4.4' } };
222223
/**
223224
* Tests in this section MUST only be run against server versions 4.4 and higher and only apply to drivers that have a
224225
* blocking method for cursor iteration that executes `getMore` commands in a loop until a document is available or an
@@ -297,7 +298,7 @@ describe('CSOT spec prose tests', function () {
297298
* 1. Verify that a `find` command and two `getMore` commands were executed against the `db.coll` collection during the test.
298299
*/
299300

300-
it('send correct number of finds and getMores', async function () {
301+
it('send correct number of finds and getMores', metadata, async function () {
301302
const cursor = client
302303
.db('db')
303304
.collection('coll')
@@ -343,7 +344,7 @@ describe('CSOT spec prose tests', function () {
343344
* - Expect this to fail with a timeout error.
344345
* 1. Verify that an `aggregate` command and two `getMore` commands were executed against the `db.coll` collection during the test.
345346
*/
346-
it.skip('sends correct number of aggregate and getMores', async function () {
347+
it.skip('sends correct number of aggregate and getMores', metadata, async function () {
347348
const changeStream = client
348349
.db('db')
349350
.collection('coll')

0 commit comments

Comments
 (0)