| 1 | version: 1 |
| 2 | style: unit |
| 3 | description: must destroy and must not check out a stale connection if found while iterating available connections |
| 4 | poolOptions: |
| 5 | backgroundThreadIntervalMS: -1 |
| 6 | operations: |
| 7 | - name: ready |
| 8 | - name: checkOut |
| 9 | label: conn |
| 10 | - name: checkIn |
| 11 | connection: conn |
| 12 | - name: clear |
| 13 | - name: ready |
| 14 | - name: checkOut |
| 15 | - name: waitForEvent |
| 16 | event: ConnectionCheckedOut |
| 17 | count: 2 |
| 18 | events: |
| 19 | - type: ConnectionPoolCreated |
| 20 | address: 42 |
| 21 | options: 42 |
| 22 | - type: ConnectionCheckedOut |
| 23 | connectionId: 1 |
| 24 | address: 42 |
| 25 | - type: ConnectionCheckedIn |
| 26 | connectionId: 1 |
| 27 | address: 42 |
| 28 | - type: ConnectionPoolCleared |
| 29 | address: 42 |
| 30 | - type: ConnectionClosed |
| 31 | connectionId: 1 |
| 32 | reason: stale |
| 33 | address: 42 |
| 34 | - type: ConnectionCheckedOut |
| 35 | connectionId: 2 |
| 36 | address: 42 |
| 37 | ignore: |
| 38 | - ConnectionReady |
| 39 | - ConnectionPoolReady |
| 40 | - ConnectionCreated |
| 41 | - ConnectionCheckOutStarted |