...

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

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

     1version: 1
     2style: unit
     3description: must destroy and must not check out a stale connection if found while iterating available connections
     4poolOptions:
     5  backgroundThreadIntervalMS: -1
     6operations:
     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
    18events:
    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
    37ignore:
    38  - ConnectionReady
    39  - ConnectionPoolReady
    40  - ConnectionCreated
    41  - ConnectionCheckOutStarted

View as plain text