Skip to content

Commit 0856f58

Browse files
fix tests
1 parent e906b93 commit 0856f58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/integration/retryable-writes/non-server-retryable_writes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('Non Server Retryable Writes', function () {
3232
'returns the original error with a PoolRequstedRetry label after encountering a WriteConcernError',
3333
{ requires: { topology: 'replicaset' } },
3434
async () => {
35-
const serverCommandStub = sinon.stub(Server.prototype, 'modernCommand');
35+
const serverCommandStub = sinon.stub(Server.prototype, 'command');
3636
serverCommandStub.onCall(0).rejects(new PoolClearedError('error'));
3737
serverCommandStub.onCall(1).returns(
3838
Promise.reject(

test/integration/retryable-writes/retryable_writes.spec.prose.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ describe('Retryable Writes Spec Prose', () => {
275275
'when a retry attempt fails with an error labeled NoWritesPerformed, drivers MUST return the original error',
276276
{ requires: { topology: 'replicaset', mongodb: '>=4.2.9' } },
277277
async () => {
278-
const serverCommandStub = sinon.stub(Server.prototype, 'modernCommand');
278+
const serverCommandStub = sinon.stub(Server.prototype, 'command');
279279
serverCommandStub.onCall(0).rejects(
280280
new MongoWriteConcernError({
281281
errorLabels: ['RetryableWriteError'],

0 commit comments

Comments
 (0)