...

Text file src/go.mongodb.org/mongo-driver/testdata/connection-monitoring-and-pooling/pool-checkout-multiple.yml

Documentation: go.mongodb.org/mongo-driver/testdata/connection-monitoring-and-pooling

     1version: 1
     2style: unit
     3description: must be able to check out multiple connections at the same time
     4operations:
     5  - name: ready
     6  - name: start
     7    target: thread1
     8  - name: start
     9    target: thread2
    10  - name: start
    11    target: thread3
    12  - name: checkOut
    13    thread: thread1
    14  - name: checkOut
    15    thread: thread2
    16  - name: checkOut
    17    thread: thread3
    18  - name: waitForThread
    19    target: thread1
    20  - name: waitForThread
    21    target: thread2
    22  - name: waitForThread
    23    target: thread3
    24events:
    25  - type: ConnectionCheckedOut
    26    connectionId: 42
    27    address: 42
    28  - type: ConnectionCheckedOut
    29    connectionId: 42
    30    address: 42
    31  - type: ConnectionCheckedOut
    32    connectionId: 42
    33    address: 42
    34ignore:
    35  - ConnectionCreated
    36  - ConnectionPoolReady
    37  - ConnectionReady
    38  - ConnectionPoolCreated
    39  - ConnectionCheckOutStarted

View as plain text