From 7ec0d954e57379d0658e353848ce75985d4c223c Mon Sep 17 00:00:00 2001 From: Sergey Zelenov Date: Thu, 29 Jan 2026 14:11:47 +0100 Subject: [PATCH 1/2] test(NODE-7402): sync spec tests for CSOT --- .../client_side_operations_timeout.spec.test.ts | 2 +- .../sessions-inherit-timeoutMS.json | 7 ++++--- .../sessions-inherit-timeoutMS.yml | 6 +++--- .../sessions-override-operation-timeoutMS.json | 7 ++++--- .../sessions-override-operation-timeoutMS.yml | 6 +++--- .../sessions-override-timeoutMS.json | 7 ++++--- .../sessions-override-timeoutMS.yml | 6 +++--- 7 files changed, 22 insertions(+), 19 deletions(-) diff --git a/test/integration/client-side-operations-timeout/client_side_operations_timeout.spec.test.ts b/test/integration/client-side-operations-timeout/client_side_operations_timeout.spec.test.ts index c2ad1d1065c..493d310bfc4 100644 --- a/test/integration/client-side-operations-timeout/client_side_operations_timeout.spec.test.ts +++ b/test/integration/client-side-operations-timeout/client_side_operations_timeout.spec.test.ts @@ -24,7 +24,7 @@ const skippedTests = { 'apply remaining timeoutMS if less than maxAwaitTimeMS': 'TODO(NODE-7360)' }; -describe('CSOT spec tests', function () { +describe.only('CSOT spec tests', function () { const specs = loadSpecTests('client-side-operations-timeout'); for (const spec of specs) { for (const test of spec.tests) { diff --git a/test/spec/client-side-operations-timeout/sessions-inherit-timeoutMS.json b/test/spec/client-side-operations-timeout/sessions-inherit-timeoutMS.json index dbf163e484e..b8725e04bb6 100644 --- a/test/spec/client-side-operations-timeout/sessions-inherit-timeoutMS.json +++ b/test/spec/client-side-operations-timeout/sessions-inherit-timeoutMS.json @@ -244,11 +244,12 @@ "failPoint": { "configureFailPoint": "failCommand", "mode": { - "times": 1 + "times": 2 }, "data": { "failCommands": [ - "insert" + "insert", + "abortTransaction" ], "blockConnection": true, "blockTimeMS": 600 @@ -330,4 +331,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/test/spec/client-side-operations-timeout/sessions-inherit-timeoutMS.yml b/test/spec/client-side-operations-timeout/sessions-inherit-timeoutMS.yml index 77f216d3adf..caa7cc404e1 100644 --- a/test/spec/client-side-operations-timeout/sessions-inherit-timeoutMS.yml +++ b/test/spec/client-side-operations-timeout/sessions-inherit-timeoutMS.yml @@ -134,9 +134,9 @@ tests: client: *failPointClient failPoint: configureFailPoint: failCommand - mode: { times: 1 } + mode: { times: 2 } data: - failCommands: ["insert"] + failCommands: ["insert", "abortTransaction"] blockConnection: true blockTimeMS: 600 - name: withTransaction @@ -172,4 +172,4 @@ tests: abortTransaction: 1 maxTimeMS: { $$type: [ "int", "long" ] } - commandFailedEvent: - commandName: abortTransaction + commandName: abortTransaction \ No newline at end of file diff --git a/test/spec/client-side-operations-timeout/sessions-override-operation-timeoutMS.json b/test/spec/client-side-operations-timeout/sessions-override-operation-timeoutMS.json index 441c698328c..f550e830b72 100644 --- a/test/spec/client-side-operations-timeout/sessions-override-operation-timeoutMS.json +++ b/test/spec/client-side-operations-timeout/sessions-override-operation-timeoutMS.json @@ -245,11 +245,12 @@ "failPoint": { "configureFailPoint": "failCommand", "mode": { - "times": 1 + "times": 2 }, "data": { "failCommands": [ - "insert" + "insert", + "abortTransaction" ], "blockConnection": true, "blockTimeMS": 600 @@ -332,4 +333,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/test/spec/client-side-operations-timeout/sessions-override-operation-timeoutMS.yml b/test/spec/client-side-operations-timeout/sessions-override-operation-timeoutMS.yml index bee91dc4cb8..daacf540be7 100644 --- a/test/spec/client-side-operations-timeout/sessions-override-operation-timeoutMS.yml +++ b/test/spec/client-side-operations-timeout/sessions-override-operation-timeoutMS.yml @@ -134,9 +134,9 @@ tests: client: *failPointClient failPoint: configureFailPoint: failCommand - mode: { times: 1 } + mode: { times: 2 } data: - failCommands: ["insert"] + failCommands: ["insert", "abortTransaction"] blockConnection: true blockTimeMS: 600 - name: withTransaction @@ -173,4 +173,4 @@ tests: abortTransaction: 1 maxTimeMS: { $$type: ["int", "long"] } - commandFailedEvent: - commandName: abortTransaction + commandName: abortTransaction \ No newline at end of file diff --git a/test/spec/client-side-operations-timeout/sessions-override-timeoutMS.json b/test/spec/client-side-operations-timeout/sessions-override-timeoutMS.json index d90152e909c..b9f3e4c3001 100644 --- a/test/spec/client-side-operations-timeout/sessions-override-timeoutMS.json +++ b/test/spec/client-side-operations-timeout/sessions-override-timeoutMS.json @@ -242,11 +242,12 @@ "failPoint": { "configureFailPoint": "failCommand", "mode": { - "times": 1 + "times": 2 }, "data": { "failCommands": [ - "insert" + "insert", + "abortTransaction" ], "blockConnection": true, "blockTimeMS": 600 @@ -328,4 +329,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/test/spec/client-side-operations-timeout/sessions-override-timeoutMS.yml b/test/spec/client-side-operations-timeout/sessions-override-timeoutMS.yml index 73aaf9ff2a7..356a29ef10e 100644 --- a/test/spec/client-side-operations-timeout/sessions-override-timeoutMS.yml +++ b/test/spec/client-side-operations-timeout/sessions-override-timeoutMS.yml @@ -132,9 +132,9 @@ tests: client: *failPointClient failPoint: configureFailPoint: failCommand - mode: { times: 1 } + mode: { times: 2 } data: - failCommands: ["insert"] + failCommands: ["insert", "abortTransaction"] blockConnection: true blockTimeMS: 600 - name: withTransaction @@ -170,4 +170,4 @@ tests: abortTransaction: 1 maxTimeMS: { $$type: [ "int", "long" ] } - commandFailedEvent: - commandName: abortTransaction + commandName: abortTransaction \ No newline at end of file From e03d32ae878d97ec7e9e831a856800229e9e8f14 Mon Sep 17 00:00:00 2001 From: Sergey Zelenov Date: Thu, 29 Jan 2026 15:39:10 +0100 Subject: [PATCH 2/2] test(NODE-7402): run all tests --- .../client_side_operations_timeout.spec.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/client-side-operations-timeout/client_side_operations_timeout.spec.test.ts b/test/integration/client-side-operations-timeout/client_side_operations_timeout.spec.test.ts index 493d310bfc4..c2ad1d1065c 100644 --- a/test/integration/client-side-operations-timeout/client_side_operations_timeout.spec.test.ts +++ b/test/integration/client-side-operations-timeout/client_side_operations_timeout.spec.test.ts @@ -24,7 +24,7 @@ const skippedTests = { 'apply remaining timeoutMS if less than maxAwaitTimeMS': 'TODO(NODE-7360)' }; -describe.only('CSOT spec tests', function () { +describe('CSOT spec tests', function () { const specs = loadSpecTests('client-side-operations-timeout'); for (const spec of specs) { for (const test of spec.tests) {