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