| 1 | { |
| 2 | "version": 1, |
| 3 | "style": "unit", |
| 4 | "description": "clearing pool clears the WaitQueue", |
| 5 | "poolOptions": { |
| 6 | "maxPoolSize": 1, |
| 7 | "waitQueueTimeoutMS": 30000 |
| 8 | }, |
| 9 | "operations": [ |
| 10 | { |
| 11 | "name": "ready" |
| 12 | }, |
| 13 | { |
| 14 | "name": "checkOut" |
| 15 | }, |
| 16 | { |
| 17 | "name": "start", |
| 18 | "target": "thread1" |
| 19 | }, |
| 20 | { |
| 21 | "name": "checkOut", |
| 22 | "thread": "thread1" |
| 23 | }, |
| 24 | { |
| 25 | "name": "start", |
| 26 | "target": "thread2" |
| 27 | }, |
| 28 | { |
| 29 | "name": "checkOut", |
| 30 | "thread": "thread2" |
| 31 | }, |
| 32 | { |
| 33 | "name": "start", |
| 34 | "target": "thread3" |
| 35 | }, |
| 36 | { |
| 37 | "name": "checkOut", |
| 38 | "thread": "thread3" |
| 39 | }, |
| 40 | { |
| 41 | "name": "waitForEvent", |
| 42 | "event": "ConnectionCheckOutStarted", |
| 43 | "count": 4 |
| 44 | }, |
| 45 | { |
| 46 | "name": "clear" |
| 47 | }, |
| 48 | { |
| 49 | "name": "waitForEvent", |
| 50 | "event": "ConnectionCheckOutFailed", |
| 51 | "count": 3, |
| 52 | "timeout": 1000 |
| 53 | } |
| 54 | ], |
| 55 | "events": [ |
| 56 | { |
| 57 | "type": "ConnectionCheckOutStarted", |
| 58 | "address": 42 |
| 59 | }, |
| 60 | { |
| 61 | "type": "ConnectionCheckedOut", |
| 62 | "address": 42 |
| 63 | }, |
| 64 | { |
| 65 | "type": "ConnectionCheckOutStarted", |
| 66 | "address": 42 |
| 67 | }, |
| 68 | { |
| 69 | "type": "ConnectionCheckOutStarted", |
| 70 | "address": 42 |
| 71 | }, |
| 72 | { |
| 73 | "type": "ConnectionCheckOutStarted", |
| 74 | "address": 42 |
| 75 | }, |
| 76 | { |
| 77 | "type": "ConnectionCheckOutFailed", |
| 78 | "reason": "connectionError", |
| 79 | "address": 42 |
| 80 | }, |
| 81 | { |
| 82 | "type": "ConnectionCheckOutFailed", |
| 83 | "reason": "connectionError", |
| 84 | "address": 42 |
| 85 | }, |
| 86 | { |
| 87 | "type": "ConnectionCheckOutFailed", |
| 88 | "reason": "connectionError", |
| 89 | "address": 42 |
| 90 | } |
| 91 | ], |
| 92 | "ignore": [ |
| 93 | "ConnectionPoolReady", |
| 94 | "ConnectionPoolCleared", |
| 95 | "ConnectionPoolCreated", |
| 96 | "ConnectionCreated", |
| 97 | "ConnectionReady", |
| 98 | "ConnectionCheckedIn", |
| 99 | "ConnectionClosed" |
| 100 | ] |
| 101 | } |