description: "Secondary wrong setName with primary"
uri: "mongodb://a,b/?replicaSet=rs"
phases: [
{
responses: [
["a:27017", {
ok: 1,
ismaster: true,
hosts: ["a:27017", "b:27017"],
setName: "rs"
}]
],
outcome: {
servers: {
"a:27017": {
type: "RSPrimary",
setName: "rs"
},
"b:27017": {
type: "Unknown",
setName:
}
},
topologyType: "ReplicaSetWithPrimary",
setName: "rs"
}
},
{
responses: [
["b:27017", {
ok: 1,
ismaster: false,
secondary: true,
hosts: ["a:27017", "b:27017"],
setName: "wrong"
}]
],
outcome: {
servers: {
"a:27017": {
type: "RSPrimary",
setName: "rs"
}
},
topologyType: "ReplicaSetWithPrimary",
setName: "rs"
}
}
]