...

Text file src/go.mongodb.org/mongo-driver/testdata/server-selection/in_window/two-choices.json

Documentation: go.mongodb.org/mongo-driver/testdata/server-selection/in_window

     1{
     2  "description": "Better of two choices always selected",
     3  "topology_description": {
     4    "type": "Sharded",
     5    "servers": [
     6      {
     7        "address": "a:27017",
     8        "avg_rtt_ms": 35,
     9        "type": "Mongos"
    10      },
    11      {
    12        "address": "b:27017",
    13        "avg_rtt_ms": 35,
    14        "type": "Mongos"
    15      }
    16    ]
    17  },
    18  "mocked_topology_state": [
    19    {
    20      "address": "a:27017",
    21      "operation_count": 0
    22    },
    23    {
    24      "address": "b:27017",
    25      "operation_count": 5
    26    }
    27  ],
    28  "iterations": 100,
    29  "outcome": {
    30    "tolerance": 0,
    31    "expected_frequencies": {
    32      "a:27017": 1,
    33      "b:27017": 0
    34    }
    35  }
    36}

View as plain text