| 1 | version: 1 |
| 2 | style: unit |
| 3 | description: must throw error if checkOut is called on a closed pool |
| 4 | operations: |
| 5 | - name: ready |
| 6 | - name: checkOut |
| 7 | label: conn1 |
| 8 | - name: checkIn |
| 9 | connection: conn1 |
| 10 | - name: close |
| 11 | - name: checkOut |
| 12 | error: |
| 13 | type: PoolClosedError |
| 14 | message: Attempted to check out a connection from closed connection pool |
| 15 | events: |
| 16 | - type: ConnectionPoolCreated |
| 17 | address: 42 |
| 18 | options: 42 |
| 19 | - type: ConnectionCheckOutStarted |
| 20 | address: 42 |
| 21 | - type: ConnectionCheckedOut |
| 22 | address: 42 |
| 23 | connectionId: 42 |
| 24 | - type: ConnectionCheckedIn |
| 25 | address: 42 |
| 26 | connectionId: 42 |
| 27 | - type: ConnectionPoolClosed |
| 28 | address: 42 |
| 29 | - type: ConnectionCheckOutStarted |
| 30 | address: 42 |
| 31 | - type: ConnectionCheckOutFailed |
| 32 | address: 42 |
| 33 | reason: poolClosed |
| 34 | ignore: |
| 35 | - ConnectionPoolReady |
| 36 | - ConnectionCreated |
| 37 | - ConnectionReady |
| 38 | - ConnectionClosed |