Skip to content

Commit

Permalink
Adding miss step to fifth prose test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikola committed May 31, 2024
1 parent 4c35c2a commit 839f0cf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions source/retryable-writes/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ debugger, code coverage tool, etc.

1. Create a client `s0` that connects to a single mongos from the cluster.

2. Configure the following fail point for `s0`:

```javascript
{
configureFailPoint: "failCommand",
Expand All @@ -281,17 +283,17 @@ debugger, code coverage tool, etc.
}
```

2. Create a client `client` with `directConnection=false` (when not set by default) and `retryWrites=true` that connects
3. Create a client `client` with `directConnection=false` (when not set by default) and `retryWrites=true` that connects
to the cluster using the same single mongos as `s0`.

3. Enable succeeded and failed command event monitoring for `client`.
4. Enable succeeded and failed command event monitoring for `client`.

4. Execute an `insert` command with `client`. Assert that the command succeeded.
5. Execute an `insert` command with `client`. Assert that the command succeeded.

5. Assert that exactly one failed command event and one succeeded command event occurred. Assert that both events
6. Assert that exactly one failed command event and one succeeded command event occurred. Assert that both events
occurred on the same mongos.

6. Disable the fail point on `s0`.
7. Disable the fail point on `s0`.

## Changelog

Expand Down

0 comments on commit 839f0cf

Please sign in to comment.