Skip to content

Commit e46fff9

Browse files
committed
test(txns): update transactions tests to latest
1 parent c536683 commit e46fff9

File tree

3 files changed

+776
-11
lines changed

3 files changed

+776
-11
lines changed

test/functional/spec/transactions/README.rst

+8-11
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,11 @@ Each YAML file has the following keys:
108108

109109
- ``arguments``: Optional, the names and values of arguments.
110110

111-
- ``result``: The return value from the operation, if any. If the
112-
operation is expected to return an error, the ``result`` has one or more
113-
of the following fields:
111+
- ``result``: The return value from the operation, if any. This field may
112+
be a single document or an array of documents in the case of a
113+
multi-document read. If the operation is expected to return an error, the
114+
``result`` is a single document that has one or more of the following
115+
fields:
114116

115117
- ``errorContains``: A substring of the expected error message.
116118

@@ -138,9 +140,9 @@ Use as integration tests
138140
========================
139141

140142
Run a MongoDB replica set with a primary, a secondary, and an arbiter,
141-
server version 4.0 or later. (Including a secondary ensures that server
142-
selection in a transaction works properly. Including an arbiter helps ensure
143-
that no new bugs have been introduced related to arbiters.)
143+
**server version 4.0.0-rc4 or later**. (Including a secondary ensures that
144+
server selection in a transaction works properly. Including an arbiter helps
145+
ensure that no new bugs have been introduced related to arbiters.)
144146

145147
Load each YAML (or JSON) file using a Canonical Extended JSON parser.
146148

@@ -230,11 +232,6 @@ Then for each element in ``tests``:
230232
Primary read preference even when the MongoClient is configured with
231233
another read preference.
232234

233-
TODO:
234-
235-
- drivers MUST retry commit/abort, needs to use failpoint.
236-
- test writeConcernErrors
237-
238235
Command-Started Events
239236
``````````````````````
240237

0 commit comments

Comments
 (0)