Skip to content

Commit e1f7d49

Browse files
committed
test: remove last 4.0 test
1 parent d19d991 commit e1f7d49

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

test/integration/connections-survive-step-down/connections_survive_step_down.prose.test.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -114,30 +114,6 @@ describe('Connections Survive Primary Step Down - prose', function () {
114114
});
115115
});
116116

117-
context('Not Primary - Reset Connection Pool', { requires: { topology: ['replicaset'] } }, () => {
118-
// This test requires a replica set with server version 4.0.
119-
120-
// - Set the following fail point: ``{configureFailPoint: "failCommand", mode: {times: 1}, data: {failCommands: ["insert"], errorCode: 10107}}``
121-
const failPoint: FailPoint = {
122-
configureFailPoint: 'failCommand',
123-
mode: { times: 1 },
124-
data: { failCommands: ['insert'], errorCode: 10107 }
125-
};
126-
127-
it('survives after primary step down', async () => {
128-
await client.db('admin').command(failPoint);
129-
// - Execute an insert into the test collection of a ``{test: 1}`` document.
130-
const error = await collection.insertOne({ test: 1 }).catch(error => error);
131-
// - Verify that the insert failed with an operation failure with 10107 code.
132-
expect(error).to.be.instanceOf(MongoServerError).and.has.property('code', 10107);
133-
// - If the driver implements the `CMAP`_ specification, verify that a `PoolClearedEvent`_ has been published
134-
expect(poolClearedEvents).to.have.lengthOf(1);
135-
// - Execute an insert into the test collection of a ``{test: 1}`` document and verify that it succeeds.
136-
await collection.insertOne({ test: 1 });
137-
// - If the driver does NOT implement the `CMAP`_ specification, use the `serverStatus`_ command to verify `connections.totalCreated`_ has increased by 1.
138-
});
139-
});
140-
141117
context(
142118
'Shutdown in progress - Reset Connection Pool',
143119
{ requires: { topology: ['replicaset'] } },

0 commit comments

Comments
 (0)