From bea7fd814c89fc55efbced51595412c3e2f185ec Mon Sep 17 00:00:00 2001 From: Neal Beeken Date: Wed, 12 Mar 2025 14:48:04 -0400 Subject: [PATCH] chore(NODE-6859): sleep for longer to reduce flaky CSOT State machine #markCommand when csot is enabled and markCommand() takes longer than the remaining timeoutMS the command should fail due to a timeout error test --- test/integration/client-side-encryption/driver.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/client-side-encryption/driver.test.ts b/test/integration/client-side-encryption/driver.test.ts index 8862b6ac41a..2854dd8912e 100644 --- a/test/integration/client-side-encryption/driver.test.ts +++ b/test/integration/client-side-encryption/driver.test.ts @@ -827,7 +827,7 @@ describe('CSOT', function () { // @ts-expect-error accessing private method .stub(Connection.prototype, 'sendCommand') .callsFake(async function* (...args) { - await sleep(1000); + await sleep(1010); yield* stub.wrappedMethod.call(this, ...args); }); });