From b60f2164306144f1d165ea6290e622812a3b549b Mon Sep 17 00:00:00 2001 From: Aditi Khare Date: Wed, 20 Dec 2023 18:21:28 -0500 Subject: [PATCH] Added forgotten edge case --- .../command_logging_and_monitoring.prose.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/integration/command-logging-and-monitoring/command_logging_and_monitoring.prose.test.ts b/test/integration/command-logging-and-monitoring/command_logging_and_monitoring.prose.test.ts index bd36ff354d9..dd4444cd016 100644 --- a/test/integration/command-logging-and-monitoring/command_logging_and_monitoring.prose.test.ts +++ b/test/integration/command-logging-and-monitoring/command_logging_and_monitoring.prose.test.ts @@ -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 () { @@ -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(); } });