...

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

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

     1version: 1
     2style: unit
     3description: must be able to start a pool with various options set
     4poolOptions:
     5  maxPoolSize: 50
     6  minPoolSize: 5
     7  maxIdleTimeMS: 100
     8operations:
     9  - name: waitForEvent
    10    event: ConnectionPoolCreated
    11    count: 1
    12events:
    13  - type: ConnectionPoolCreated
    14    address: 42
    15    options:
    16      maxPoolSize: 50
    17      minPoolSize: 5
    18      maxIdleTimeMS: 100
    19ignore:
    20  - ConnectionCreated
    21  - ConnectionReady

View as plain text