Skip to content

Commit b012f88

Browse files
sync tests
1 parent d9a6424 commit b012f88

11 files changed

+1285
-883
lines changed

test/integration/read-write-concern/read_write_concern.spec.test.js

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import path = require('path');
2+
import { loadSpecTests } from '../../spec';
3+
import { runUnifiedSuite } from '../../tools/unified-spec-runner/runner';
4+
5+
describe('Read/Write Concern Unified Tests', function () {
6+
runUnifiedSuite(
7+
loadSpecTests(path.join('read-write-concern', 'operation')),
8+
({ description }) => {
9+
return description.toLowerCase().includes('mapreduce')
10+
? 'The node driver does not implement mapReduce.'
11+
: false;
12+
}
13+
);
14+
});

test/spec/read-write-concern/README.rst

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,7 @@ Operation
5757

5858
These tests check that the default write concern is omitted in operations.
5959

60-
The spec test format is an extension of `transactions spec tests <https://github.com/mongodb/specifications/blob/master/source/transactions/tests/README.rst>`_ with the following additions:
61-
62-
- ``writeConcern`` in the ``databaseOptions`` or ``collectionOptions`` may be an empty document to indicate a `server default write concern <https://github.com/mongodb/specifications/blob/master/source/read-write-concern/read-write-concern.rst#servers-default-writeconcern>`_. For example, in libmongoc:
63-
64-
.. code:: c
65-
66-
/* Create a default write concern, and set on a collection object. */
67-
mongoc_write_concern_t *wc = mongoc_write_concern_new ();
68-
mongoc_collection_set_write_concern (collection, wc);
69-
70-
If the driver has no way to explicitly set a default write concern on a database or collection, ignore the empty ``writeConcern`` document and continue with the test.
71-
- The operations ``createIndex``, ``dropIndex`` are introduced.
72-
60+
The tests utilize the `Unified Test Format <../../unified-test-format/unified-test-format.md>`__.
7361

7462
Use as unit tests
7563
=================

0 commit comments

Comments
 (0)