Skip to content

Commit f354960

Browse files
authored
clarify Transaction prose test version requirements and collection creation (#1777)
1 parent 0d97c7d commit f354960

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/transactions/tests/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,19 @@ these tests do not run against a standalone server.
8484
### 1.0 Write concern not inherited from collection object inside transaction.
8585

8686
- Create a MongoClient running against a configured sharded/replica set/load balanced cluster.
87+
- transactions require a 4.0+ server when non-sharded and 4.2+ when sharded
8788
- Start a new session on the client.
8889
- Start a transaction on the session.
8990
- Instantiate a collection object in the driver with a default write concern of `{ w: 0 }`.
91+
- Create the collection or ensure it exists before the insert
9092
- Insert the document `{ n: 1 }` on the instantiated collection.
9193
- Commit the transaction.
9294
- End the session.
9395
- Ensure the document was inserted and no error was thrown from the transaction.
9496

9597
## Changelog
9698

99+
- 2025-03-27: Clarify server versions and collection creation for prose test
97100
- 2024-10-31: Add test for PoolClearedError.
98101
- 2024-02-15: Migrated from reStructuredText to Markdown.
99102
- 2024-02-07: Converted legacy transaction tests to unified format and moved the legacy test format docs to a separate

0 commit comments

Comments
 (0)