Skip to content

Commit

Permalink
Added forgotten edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
aditi-khare-mongoDB committed Dec 20, 2023
1 parent 2bb449b commit b60f216
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { expect } from 'chai';

import { DEFAULT_MAX_DOCUMENT_LENGTH, type Document } from '../../mongodb';

describe('Command Logging and Monitoring Prose Tests', function () {
describe.only('Command Logging and Monitoring Prose Tests', function () {
const loggerFeatureFlag = Symbol.for('@@mdb.enableMongoLogger');
const ELLIPSES_LENGTH = 3;
context('When no custom truncation limit is provided', function () {
Expand Down Expand Up @@ -194,6 +194,11 @@ describe('Command Logging and Monitoring Prose Tests', function () {
expect(insertManyCommandStarted?.command).to.be.a('string');
expect(insertManyCommandStarted?.command?.length).to.equal(50 + ELLIPSES_LENGTH);

const insertManyCommandSucceeded = writable.buffer[3];
expect(insertManyCommandSucceeded?.message).to.equal('Command succeeded');
expect(insertManyCommandSucceeded?.reply).to.be.a('string');
expect(insertManyCommandSucceeded?.reply?.length).to.be.at.most(50 + ELLIPSES_LENGTH);

await client.close();
}
});
Expand Down

0 comments on commit b60f216

Please sign in to comment.