Skip to content

DRIVERS-1872 Add sessions spec tests to verify explicit sessions were created on the correct client #1754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions source/sessions/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,9 @@ Repeat the above for all methods that take a session parameter.

### 5. Session argument is for the right client

- Create `client1` and `client2`
- Get `database` from `client1`
- Get `collection` from `database`
- Start `session` from `client2`
- Call `collection.insertOne(session,...)`
- Assert that an error was reported because `session` was not started from `client1`
Removed.

Repeat the above for all methods that take a session parameter.
Tested in the unified test "driver-sessions-argument-for-correct-client".

### 6. No further operations can be performed using a session after `endSession` has been called

Expand Down
Loading
Loading