PYTHON-4379 Test that durations are included on relevant pool events (#1765)
This commit is contained in:
parent
682f15b21e
commit
f17f5e286e
@ -22,7 +22,8 @@
|
||||
{
|
||||
"type": "ConnectionCheckedOut",
|
||||
"connectionId": 1,
|
||||
"address": 42
|
||||
"address": 42,
|
||||
"duration": 42
|
||||
},
|
||||
{
|
||||
"type": "ConnectionCheckedIn",
|
||||
@ -32,7 +33,8 @@
|
||||
{
|
||||
"type": "ConnectionCheckedOut",
|
||||
"connectionId": 1,
|
||||
"address": 42
|
||||
"address": 42,
|
||||
"duration": 42
|
||||
}
|
||||
],
|
||||
"ignore": [
|
||||
|
||||
@ -23,12 +23,14 @@
|
||||
{
|
||||
"type": "ConnectionReady",
|
||||
"connectionId": 1,
|
||||
"address": 42
|
||||
"address": 42,
|
||||
"duration": 42
|
||||
},
|
||||
{
|
||||
"type": "ConnectionCheckedOut",
|
||||
"connectionId": 1,
|
||||
"address": 42
|
||||
"address": 42,
|
||||
"duration": 42
|
||||
}
|
||||
],
|
||||
"ignore": [
|
||||
|
||||
@ -38,7 +38,8 @@
|
||||
{
|
||||
"type": "ConnectionCheckedOut",
|
||||
"address": 42,
|
||||
"connectionId": 42
|
||||
"connectionId": 42,
|
||||
"duration": 42
|
||||
},
|
||||
{
|
||||
"type": "ConnectionCheckedIn",
|
||||
@ -56,6 +57,7 @@
|
||||
{
|
||||
"type": "ConnectionCheckOutFailed",
|
||||
"address": 42,
|
||||
"duration": 42,
|
||||
"reason": "poolClosed"
|
||||
}
|
||||
],
|
||||
|
||||
@ -89,7 +89,8 @@
|
||||
{
|
||||
"type": "ConnectionCheckOutFailed",
|
||||
"reason": "timeout",
|
||||
"address": 42
|
||||
"address": 42,
|
||||
"duration": 42
|
||||
}
|
||||
],
|
||||
"ignore": [
|
||||
|
||||
@ -59,7 +59,8 @@
|
||||
},
|
||||
{
|
||||
"type": "ConnectionCheckedOut",
|
||||
"address": 42
|
||||
"address": 42,
|
||||
"duration": 42
|
||||
},
|
||||
{
|
||||
"type": "ConnectionCheckOutStarted",
|
||||
@ -76,17 +77,20 @@
|
||||
{
|
||||
"type": "ConnectionCheckOutFailed",
|
||||
"reason": "connectionError",
|
||||
"address": 42
|
||||
"address": 42,
|
||||
"duration": 42
|
||||
},
|
||||
{
|
||||
"type": "ConnectionCheckOutFailed",
|
||||
"reason": "connectionError",
|
||||
"address": 42
|
||||
"address": 42,
|
||||
"duration": 42
|
||||
},
|
||||
{
|
||||
"type": "ConnectionCheckOutFailed",
|
||||
"reason": "connectionError",
|
||||
"address": 42
|
||||
"address": 42,
|
||||
"duration": 42
|
||||
}
|
||||
],
|
||||
"ignore": [
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
],
|
||||
"closeConnection": false,
|
||||
"blockConnection": true,
|
||||
"blockTimeMS": 1000
|
||||
"blockTimeMS": 10000
|
||||
}
|
||||
},
|
||||
"poolOptions": {
|
||||
|
||||
@ -40,7 +40,8 @@
|
||||
{
|
||||
"type": "ConnectionCheckedOut",
|
||||
"address": 42,
|
||||
"connectionId": 42
|
||||
"connectionId": 42,
|
||||
"duration": 42
|
||||
},
|
||||
{
|
||||
"type": "ConnectionPoolCleared",
|
||||
@ -49,6 +50,7 @@
|
||||
{
|
||||
"type": "ConnectionCheckOutFailed",
|
||||
"address": 42,
|
||||
"duration": 42,
|
||||
"reason": "connectionError"
|
||||
},
|
||||
{
|
||||
@ -57,7 +59,8 @@
|
||||
},
|
||||
{
|
||||
"type": "ConnectionCheckedOut",
|
||||
"address": 42
|
||||
"address": 42,
|
||||
"duration": 42
|
||||
}
|
||||
],
|
||||
"ignore": [
|
||||
|
||||
@ -31,7 +31,8 @@
|
||||
{
|
||||
"type": "ConnectionCheckOutFailed",
|
||||
"reason": "connectionError",
|
||||
"address": 42
|
||||
"address": 42,
|
||||
"duration": 42
|
||||
},
|
||||
{
|
||||
"type": "ConnectionPoolReady",
|
||||
@ -47,7 +48,8 @@
|
||||
},
|
||||
{
|
||||
"type": "ConnectionCheckedOut",
|
||||
"address": 42
|
||||
"address": 42,
|
||||
"duration": 42
|
||||
}
|
||||
],
|
||||
"ignore": [
|
||||
|
||||
@ -48,7 +48,8 @@
|
||||
{
|
||||
"type": "ConnectionCheckedOut",
|
||||
"connectionId": 42,
|
||||
"address": 42
|
||||
"address": 42,
|
||||
"duration": 42
|
||||
},
|
||||
{
|
||||
"type": "ConnectionCheckOutStarted",
|
||||
@ -57,7 +58,8 @@
|
||||
{
|
||||
"type": "ConnectionCheckOutFailed",
|
||||
"reason": "timeout",
|
||||
"address": 42
|
||||
"address": 42,
|
||||
"duration": 42
|
||||
},
|
||||
{
|
||||
"type": "ConnectionCheckedIn",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user