...

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

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

     1version: 1
     2style: unit
     3description: must throw error if checkOut is called on a closed pool
     4operations:
     5  - name: ready
     6  - name: checkOut
     7    label: conn1
     8  - name: checkIn
     9    connection: conn1
    10  - name: close
    11  - name: checkOut
    12error:
    13  type: PoolClosedError
    14  message: Attempted to check out a connection from closed connection pool
    15events:
    16  - type: ConnectionPoolCreated
    17    address: 42
    18    options: 42
    19  - type: ConnectionCheckOutStarted
    20    address: 42
    21  - type: ConnectionCheckedOut
    22    address: 42
    23    connectionId: 42
    24  - type: ConnectionCheckedIn
    25    address: 42
    26    connectionId: 42
    27  - type: ConnectionPoolClosed
    28    address: 42
    29  - type: ConnectionCheckOutStarted
    30    address: 42
    31  - type: ConnectionCheckOutFailed
    32    address: 42
    33    reason: poolClosed
    34ignore:
    35  - ConnectionPoolReady
    36  - ConnectionCreated
    37  - ConnectionReady
    38  - ConnectionClosed

View as plain text