Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating cmap spec tests to account for race conditions
Includes adding the waitForEvent operation, and adjusting some tests to avoid race conditions.
- Loading branch information
1 parent
3b0f399
commit 9ab3b33
Showing
19 changed files
with
126 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 12 additions & 17 deletions
29
source/connection-monitoring-and-pooling/tests/pool-checkout-no-stale.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,29 @@ | ||
version: 1 | ||
style: unit | ||
description: must destroy and must not check out a stale connection if found while iterating available connections | ||
poolOptions: | ||
minPoolSize: 3 | ||
operations: | ||
- name: wait | ||
ms: 20 | ||
- name: checkOut | ||
label: conn | ||
- name: checkIn | ||
connection: conn | ||
- name: clear | ||
- name: checkOut | ||
events: | ||
- type: ConnectionPoolCreated | ||
address: 42 | ||
options: 42 | ||
- type: ConnectionCheckedOut | ||
connectionId: 1 | ||
- type: ConnectionCheckedIn | ||
connectionId: 1 | ||
- type: ConnectionPoolCleared | ||
address: 42 | ||
- type: ConnectionCheckOutStarted | ||
|
||
# Note: we cannot deterministically assert which connections get destroyed in which order, | ||
# just that they will all be destroyed before connection check out. | ||
- type: ConnectionClosed | ||
connectionId: 42 | ||
reason: stale | ||
- type: ConnectionClosed | ||
connectionId: 42 | ||
reason: stale | ||
- type: ConnectionClosed | ||
connectionId: 42 | ||
connectionId: 1 | ||
reason: stale | ||
- type: ConnectionCheckedOut | ||
connectionId: 4 | ||
connectionId: 2 | ||
ignore: | ||
- ConnectionCreated | ||
- ConnectionReady | ||
- ConnectionCreated | ||
- ConnectionCheckOutStarted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.