...

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

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

     1{
     2  "version": 1,
     3  "style": "unit",
     4  "description": "pool starts as cleared and becomes ready",
     5  "operations": [
     6    {
     7      "name": "start",
     8      "target": "thread1"
     9    },
    10    {
    11      "name": "checkOut",
    12      "thread": "thread1"
    13    },
    14    {
    15      "name": "waitForEvent",
    16      "event": "ConnectionCheckOutFailed",
    17      "count": 1
    18    },
    19    {
    20      "name": "ready"
    21    },
    22    {
    23      "name": "checkOut"
    24    }
    25  ],
    26  "events": [
    27    {
    28      "type": "ConnectionCheckOutStarted",
    29      "address": 42
    30    },
    31    {
    32      "type": "ConnectionCheckOutFailed",
    33      "reason": "connectionError",
    34      "address": 42
    35    },
    36    {
    37      "type": "ConnectionPoolReady",
    38      "address": 42
    39    },
    40    {
    41      "type": "ConnectionCheckOutStarted",
    42      "address": 42
    43    },
    44    {
    45      "type": "ConnectionCreated",
    46      "address": 42
    47    },
    48    {
    49      "type": "ConnectionCheckedOut",
    50      "address": 42
    51    }
    52  ],
    53  "ignore": [
    54    "ConnectionPoolCreated",
    55    "ConnectionReady"
    56  ]
    57}

View as plain text