...

Text file src/go.mongodb.org/mongo-driver/testdata/server-selection/server_selection/ReplicaSetNoPrimary/read/PossiblePrimaryNearest.yml

Documentation: go.mongodb.org/mongo-driver/testdata/server-selection/server_selection/ReplicaSetNoPrimary/read

     1# Test that PossiblePrimary isn't candidate for any read preference mode.
     2---
     3topology_description:
     4  type: ReplicaSetNoPrimary
     5  servers:
     6  - address: b:27017
     7    avg_rtt_ms: 5
     8    type: PossiblePrimary
     9operation: read
    10read_preference:
    11  mode: Nearest
    12  tag_sets:
    13  - {}
    14suitable_servers: []
    15in_latency_window: []

View as plain text