| 1 | { |
| 2 | "version": 1, |
| 3 | "style": "unit", |
| 4 | "description": "must destroy and must not check out a stale connection if found while iterating available connections", |
| 5 | "poolOptions": { |
| 6 | "backgroundThreadIntervalMS": -1 |
| 7 | }, |
| 8 | "operations": [ |
| 9 | { |
| 10 | "name": "ready" |
| 11 | }, |
| 12 | { |
| 13 | "name": "checkOut", |
| 14 | "label": "conn" |
| 15 | }, |
| 16 | { |
| 17 | "name": "checkIn", |
| 18 | "connection": "conn" |
| 19 | }, |
| 20 | { |
| 21 | "name": "clear" |
| 22 | }, |
| 23 | { |
| 24 | "name": "ready" |
| 25 | }, |
| 26 | { |
| 27 | "name": "checkOut" |
| 28 | }, |
| 29 | { |
| 30 | "name": "waitForEvent", |
| 31 | "event": "ConnectionCheckedOut", |
| 32 | "count": 2 |
| 33 | } |
| 34 | ], |
| 35 | "events": [ |
| 36 | { |
| 37 | "type": "ConnectionPoolCreated", |
| 38 | "address": 42, |
| 39 | "options": 42 |
| 40 | }, |
| 41 | { |
| 42 | "type": "ConnectionCheckedOut", |
| 43 | "connectionId": 1, |
| 44 | "address": 42 |
| 45 | }, |
| 46 | { |
| 47 | "type": "ConnectionCheckedIn", |
| 48 | "connectionId": 1, |
| 49 | "address": 42 |
| 50 | }, |
| 51 | { |
| 52 | "type": "ConnectionPoolCleared", |
| 53 | "address": 42 |
| 54 | }, |
| 55 | { |
| 56 | "type": "ConnectionClosed", |
| 57 | "connectionId": 1, |
| 58 | "reason": "stale", |
| 59 | "address": 42 |
| 60 | }, |
| 61 | { |
| 62 | "type": "ConnectionCheckedOut", |
| 63 | "connectionId": 2, |
| 64 | "address": 42 |
| 65 | } |
| 66 | ], |
| 67 | "ignore": [ |
| 68 | "ConnectionReady", |
| 69 | "ConnectionPoolReady", |
| 70 | "ConnectionCreated", |
| 71 | "ConnectionCheckOutStarted" |
| 72 | ] |
| 73 | } |