Skip to content

Commit dff5a8e

Browse files
committed
test: remove legacy shims
1 parent 94c0880 commit dff5a8e

File tree

5 files changed

+5
-53
lines changed

5 files changed

+5
-53
lines changed

test/integration/causal-consistency/causal_consistency.prose.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ describe('Causal Consistency - prose tests', function () {
169169
let firstOperationTime;
170170
return db
171171
.collection('causal_test')
172-
.insert({}, { session: session })
172+
.insertOne({}, { session: session })
173173
.then(() => {
174174
firstOperationTime = test.commands.succeeded[0].reply.operationTime;
175175
return db.collection('causal_test').findOne({}, { session: session });

test/integration/crud/misc_cursors.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ describe('Cursor', function () {
770770
// for (let ii = 0; ii < 10; ++ii) docs.push({ b: ii + 1 });
771771

772772
// // insert all docs
773-
// collection.insert(docs, configuration.writeConcernMax(), err => {
773+
// collection.insertMany(docs, configuration.writeConcernMax(), err => {
774774
// expect(err).to.not.exist;
775775

776776
// let finished = 0,

test/integration/index_management.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ describe('Indexes', function () {
333333

334334
beforeEach(async function () {
335335
collection = await db.createCollection('test_drop_indexes');
336-
await collection.insert({ a: 1 });
336+
await collection.insertOne({ a: 1 });
337337
// Create an index on the collection
338338
await db.createIndex(collection.collectionName, 'a');
339339
});
@@ -383,7 +383,7 @@ describe('Indexes', function () {
383383

384384
beforeEach(async function () {
385385
collection = await db.createCollection('test_index_exists');
386-
await collection.insert({ a: 1 });
386+
await collection.insertOne({ a: 1 });
387387

388388
await db.createIndex(collection.collectionName, 'a');
389389
await db.createIndex(collection.collectionName, ['c', 'd', 'e']);

test/mocha_mongodb.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ module.exports = {
1111
'test/tools/runner/chai_addons.ts',
1212
'test/tools/runner/ee_checker.ts',
1313
'test/tools/runner/hooks/configuration.ts',
14-
'test/tools/runner/hooks/leak_checker.ts',
15-
'test/tools/runner/hooks/legacy_crud_shims.ts'
14+
'test/tools/runner/hooks/leak_checker.ts'
1615
],
1716
extension: ['js', 'ts'],
1817
ui: 'test/tools/runner/metadata_ui.js',

test/tools/runner/hooks/legacy_crud_shims.ts

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)