Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Oct 12, 2024
1 parent 8b189ba commit 937f40f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api-compatibility.versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
stargate_version=v2.1.0-BETA-14
data_api_version=v1.0.16
stargate_version=v2.1.0-BETA-18
data_api_version=v1.0.17
4 changes: 2 additions & 2 deletions tests/collections/collection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ describe(`StargateMongoose - ${testClientName} Connection - collections.collecti
error = e;
}
assert.ok(error);
assert.strictEqual(error.errors[0].message, 'Failed to insert document with _id \'docml10\': Document already exists with the given _id');
assert.strictEqual(error.errors[0].message, 'Failed to insert document with _id docml10: Document already exists with the given _id');
assert.strictEqual(error.errors[0].errorCode, 'DOCUMENT_ALREADY_EXISTS');
assert.strictEqual(error.status.insertedIds.length, 10);
docList.slice(0, 10).forEach((doc, index) => {
Expand Down Expand Up @@ -315,7 +315,7 @@ describe(`StargateMongoose - ${testClientName} Connection - collections.collecti
error = e;
}
assert.ok(error);
assert.strictEqual(error.errors[0].message, 'Failed to insert document with _id \'docml10\': Document already exists with the given _id');
assert.strictEqual(error.errors[0].message, 'Failed to insert document with _id docml10: Document already exists with the given _id');
assert.strictEqual(error.errors[0].errorCode, 'DOCUMENT_ALREADY_EXISTS');
assert.strictEqual(error.status.insertedIds.length, 19);
//check if response insertedIds contains all the docs except the one that failed
Expand Down

0 comments on commit 937f40f

Please sign in to comment.