Skip to content

Commit b60f216

Browse files
Added forgotten edge case
1 parent 2bb449b commit b60f216

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/integration/command-logging-and-monitoring/command_logging_and_monitoring.prose.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { expect } from 'chai';
22

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

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

197+
const insertManyCommandSucceeded = writable.buffer[3];
198+
expect(insertManyCommandSucceeded?.message).to.equal('Command succeeded');
199+
expect(insertManyCommandSucceeded?.reply).to.be.a('string');
200+
expect(insertManyCommandSucceeded?.reply?.length).to.be.at.most(50 + ELLIPSES_LENGTH);
201+
197202
await client.close();
198203
}
199204
});

0 commit comments

Comments
 (0)