...

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

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

     1version: 1
     2style: unit
     3description: must destroy checked in connection if it is stale
     4operations:
     5  - name: ready
     6  - name: checkOut
     7    label: conn
     8  - name: clear
     9  - name: checkIn
    10    connection: conn
    11events:
    12  - type: ConnectionCheckedOut
    13    connectionId: 1
    14    address: 42
    15  - type: ConnectionPoolCleared
    16    address: 42
    17  - type: ConnectionCheckedIn
    18    connectionId: 1
    19    address: 42
    20  - type: ConnectionClosed
    21    connectionId: 1
    22    reason: stale
    23    address: 42
    24ignore:
    25  - ConnectionPoolCreated
    26  - ConnectionPoolReady
    27  - ConnectionCreated
    28  - ConnectionReady
    29  - ConnectionCheckOutStarted

View as plain text