Skip to content

Commit

Permalink
DRIVERS-2469 Test that durations are included on relevant pool events.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdale committed Apr 5, 2024
1 parent cd08b72 commit 3631a30
Show file tree
Hide file tree
Showing 17 changed files with 53 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ All Unit Tests have some of the following fields:
- `type`: The type of event emitted
- `address`: The address of the pool emitting the event
- `connectionId`: The id of a connection associated with the event
- `duration`: The event duration
- `options`: Options used to create the pool
- `reason`: A reason giving more information on why the event was emitted
- `ignore`: An array of event names to ignore
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ events:
- type: ConnectionCheckedOut
connectionId: 1
address: 42
duration: 42
- type: ConnectionCheckedIn
connectionId: 1
address: 42
- type: ConnectionCheckedOut
connectionId: 1
address: 42
duration: 42
ignore:
- ConnectionPoolCreated
- ConnectionPoolReady
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ events:
- type: ConnectionReady
connectionId: 1
address: 42
duration: 42
- type: ConnectionCheckedOut
connectionId: 1
address: 42
duration: 42
ignore:
- ConnectionPoolReady
- ConnectionPoolCreated

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ events:
- type: ConnectionCheckedOut
address: 42
connectionId: 42
duration: 42
- type: ConnectionCheckedIn
address: 42
connectionId: 42
Expand All @@ -30,6 +31,7 @@ events:
address: 42
- type: ConnectionCheckOutFailed
address: 42
duration: 42
reason: poolClosed
ignore:
- ConnectionPoolReady
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ events:
- type: ConnectionCheckOutFailed
reason: timeout
address: 42
duration: 42
ignore:
- ConnectionCreated
- ConnectionCheckedIn
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ events:
address: 42
- type: ConnectionCheckedOut
address: 42
duration: 42
- type: ConnectionCheckOutStarted
address: 42
- type: ConnectionCheckOutStarted
Expand All @@ -47,12 +48,15 @@ events:
- type: ConnectionCheckOutFailed
reason: connectionError
address: 42
duration: 42
- type: ConnectionCheckOutFailed
reason: connectionError
address: 42
duration: 42
- type: ConnectionCheckOutFailed
reason: connectionError
address: 42
duration: 42
ignore:
- ConnectionPoolReady
- ConnectionPoolCleared
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,18 @@ events:
- type: ConnectionCheckedOut
address: 42
connectionId: 42
duration: 42
- type: ConnectionPoolCleared
address: 42
- type: ConnectionCheckOutFailed
address: 42
duration: 42
reason: connectionError
- type: ConnectionPoolReady
address: 42
- type: ConnectionCheckedOut
address: 42
duration: 42
ignore:
- ConnectionPoolCreated
- ConnectionReady
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ events:
- type: ConnectionCheckOutFailed
reason: connectionError
address: 42
duration: 42
- type: ConnectionPoolReady
address: 42
- type: ConnectionCheckOutStarted
Expand All @@ -25,6 +26,7 @@ events:
address: 42
- type: ConnectionCheckedOut
address: 42
duration: 42
ignore:
- ConnectionPoolCreated
- ConnectionReady

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ events:
- type: ConnectionCheckedOut
connectionId: 42
address: 42
duration: 42
- type: ConnectionCheckOutStarted
address: 42
- type: ConnectionCheckOutFailed
reason: timeout
address: 42
duration: 42
- type: ConnectionCheckedIn
connectionId: 42
address: 42
Expand Down

0 comments on commit 3631a30

Please sign in to comment.