Skip to content

Commit

Permalink
test: add test to ensure connections are replaced up to minPoolSize
Browse files Browse the repository at this point in the history
  • Loading branch information
dariakp committed May 20, 2022
1 parent fb6de1f commit 92d6ec8
Showing 1 changed file with 77 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"version": 1,
"style": "unit",
"description": "must replace removed connections up to minPoolSize",
"poolOptions": {
"minPoolSize": 2
},
"operations": [
{
"name": "waitForEvent",
"event": "ConnectionReady",
"count": 2
},
{
"name": "wait",
"ms": 1000
},
{
"name": "checkOut",
"label": "conn"
},
{
"name": "clear"
},
{
"name": "checkIn",
"connection": "conn"
},
{
"name": "waitForEvent",
"event": "ConnectionReady",
"count": 3
}
],
"events": [
{
"type": "ConnectionReady",
"address": 42
},
{
"type": "ConnectionReady",
"address": 42
},
{
"type": "ConnectionCheckedOut",
"address": 42
},
{
"type": "ConnectionPoolCleared",
"address": 42
},
{
"type": "ConnectionCheckedIn",
"address": 42
},
{
"type": "ConnectionClosed",
"reason": "stale",
"address": 42,
"availableConnectionCount": 1,
"pendingConnectionCount": 0,
"totalConnectionCount": 1
},
{
"type": "ConnectionReady",
"address": 42,
"availableConnectionCount": 1,
"pendingConnectionCount": 1,
"totalConnectionCount": 2
}
],
"ignore": [
"ConnectionPoolCreated",
"ConnectionCreated",
"ConnectionCheckOutStarted"
]
}

0 comments on commit 92d6ec8

Please sign in to comment.