()
| 350 | beforeEach(() => test.setup()); |
| 351 | |
| 352 | async function makeAndConnectReplSet(): Promise<Topology> { |
| 353 | const replSet = topologyWithPlaceholderClient( |
| 354 | [test.primaryServer.hostAddress(), test.firstSecondaryServer.hostAddress()], |
| 355 | { replicaSet: 'rs' } as TopologyOptions |
| 356 | ); |
| 357 | |
| 358 | const topology = await replSet.connect(); |
| 359 | return topology; |
| 360 | } |
| 361 | |
| 362 | it('should expose a user command writeConcern error like a normal WriteConcernError', function () { |
| 363 | test.primaryServer.setMessageHandler(request => { |
no test coverage detected