...

Text file src/go.mongodb.org/mongo-driver/testdata/connection-monitoring-and-pooling/pool-create-max-size.yml

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

     1version: 1
     2style: unit
     3description: must never exceed maxPoolSize total connections
     4poolOptions:
     5  maxPoolSize: 3
     6operations:
     7  - name: ready
     8  - name: checkOut
     9    label: conn1
    10  - name: checkOut
    11  - name: checkOut
    12    label: conn2
    13  - name: checkIn
    14    connection: conn2
    15  - name: checkOut
    16  - name: start
    17    target: thread1
    18  - name: checkOut
    19    thread: thread1
    20  - name: waitForEvent
    21    event: ConnectionCheckOutStarted
    22    count: 5
    23  - name: checkIn
    24    connection: conn1
    25  - name: waitForThread
    26    target: thread1
    27events:
    28  - type: ConnectionPoolCreated
    29    address: 42
    30    options: 42
    31  - type: ConnectionCheckOutStarted
    32    address: 42
    33  - type: ConnectionCreated
    34    connectionId: 42
    35    address: 42
    36  - type: ConnectionCheckedOut
    37    connectionId: 42
    38    address: 42
    39  - type: ConnectionCheckOutStarted
    40    address: 42
    41  - type: ConnectionCreated
    42    connectionId: 42
    43    address: 42
    44  - type: ConnectionCheckedOut
    45    connectionId: 42
    46    address: 42
    47  - type: ConnectionCheckOutStarted
    48    address: 42
    49  - type: ConnectionCreated
    50    connectionId: 42
    51    address: 42
    52  - type: ConnectionCheckedOut
    53    connectionId: 42
    54    address: 42
    55  - type: ConnectionCheckedIn
    56    connectionId: 42
    57    address: 42
    58  - type: ConnectionCheckOutStarted
    59    address: 42
    60  - type: ConnectionCheckedOut
    61    connectionId: 42
    62    address: 42
    63  - type: ConnectionCheckOutStarted
    64    address: 42
    65  - type: ConnectionCheckedIn
    66    connectionId: 42
    67    address: 42
    68  - type: ConnectionCheckedOut
    69    connectionId: 42
    70    address: 42
    71ignore:
    72  - ConnectionReady
    73  - ConnectionPoolReady

View as plain text