...

Text file src/go.mongodb.org/mongo-driver/testdata/connection-monitoring-and-pooling/pool-clear-min-size.json

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

     1{
     2  "version": 1,
     3  "style": "unit",
     4  "description": "pool clear halts background minPoolSize establishments",
     5  "poolOptions": {
     6    "minPoolSize": 1,
     7    "backgroundThreadIntervalMS": 50
     8  },
     9  "operations": [
    10    {
    11      "name": "ready"
    12    },
    13    {
    14      "name": "waitForEvent",
    15      "event": "ConnectionReady",
    16      "count": 1
    17    },
    18    {
    19      "name": "clear"
    20    },
    21    {
    22      "name": "wait",
    23      "ms": 200
    24    },
    25    {
    26      "name": "ready"
    27    },
    28    {
    29      "name": "waitForEvent",
    30      "event": "ConnectionReady",
    31      "count": 2
    32    }
    33  ],
    34  "events": [
    35    {
    36      "type": "ConnectionPoolReady",
    37      "address": 42
    38    },
    39    {
    40      "type": "ConnectionCreated",
    41      "address": 42
    42    },
    43    {
    44      "type": "ConnectionReady",
    45      "address": 42
    46    },
    47    {
    48      "type": "ConnectionPoolCleared",
    49      "address": 42
    50    },
    51    {
    52      "type": "ConnectionPoolReady",
    53      "address": 42
    54    },
    55    {
    56      "type": "ConnectionCreated",
    57      "address": 42
    58    },
    59    {
    60      "type": "ConnectionReady",
    61      "address": 42
    62    }
    63  ],
    64  "ignore": [
    65    "ConnectionPoolCreated",
    66    "ConnectionClosed"
    67  ]
    68}

View as plain text