diff --git a/packages/client/lib/tests/test-scenario/timeout-during-notifications.e2e.ts b/packages/client/lib/tests/test-scenario/timeout-during-notifications.e2e.ts index 30cdd4669c..848e17f450 100644 --- a/packages/client/lib/tests/test-scenario/timeout-during-notifications.e2e.ts +++ b/packages/client/lib/tests/test-scenario/timeout-during-notifications.e2e.ts @@ -82,8 +82,8 @@ describe("Timeout Handling During Notifications", () => { "Command Timeout error should be instanceof Error" ); assert.ok( - duration > NORMAL_COMMAND_TIMEOUT && - duration < NORMAL_COMMAND_TIMEOUT * 1.1, + duration >= NORMAL_COMMAND_TIMEOUT && + duration < NORMAL_COMMAND_TIMEOUT * 1.2, `Normal command should timeout within normal timeout ms` ); assert.strictEqual( @@ -128,8 +128,8 @@ describe("Timeout Handling During Notifications", () => { `${notification} notification error should be instanceof Error` ); assert.ok( - result[notification]?.duration > RELAXED_COMMAND_TIMEOUT && - result[notification]?.duration < RELAXED_COMMAND_TIMEOUT * 1.1, + result[notification]?.duration >= RELAXED_COMMAND_TIMEOUT && + result[notification]?.duration < RELAXED_COMMAND_TIMEOUT * 1.2, `${notification} notification should timeout within relaxed timeout` ); assert.strictEqual( @@ -165,7 +165,7 @@ describe("Timeout Handling During Notifications", () => { ); assert.ok( durationMigrate >= NORMAL_COMMAND_TIMEOUT && - durationMigrate < NORMAL_COMMAND_TIMEOUT * 1.1, + durationMigrate < NORMAL_COMMAND_TIMEOUT * 1.2, `Normal command should timeout within normal timeout ms` ); assert.strictEqual( @@ -200,7 +200,7 @@ describe("Timeout Handling During Notifications", () => { ); assert.ok( durationBind >= NORMAL_COMMAND_TIMEOUT && - durationBind < NORMAL_COMMAND_TIMEOUT * 1.1, + durationBind < NORMAL_COMMAND_TIMEOUT * 1.2, `Normal command should timeout within normal timeout ms` ); assert.strictEqual( diff --git a/packages/client/lib/tests/test-scenario/to-failover.e2e.ts b/packages/client/lib/tests/test-scenario/to-failover.e2e.ts index 506aa6f74b..765859bfc8 100644 --- a/packages/client/lib/tests/test-scenario/to-failover.e2e.ts +++ b/packages/client/lib/tests/test-scenario/to-failover.e2e.ts @@ -105,8 +105,8 @@ describe("Timeout Handling During Notifications", () => { `${notification} notification error should be instanceof Error` ); assert.ok( - result[notification]?.duration > RELAXED_COMMAND_TIMEOUT && - result[notification]?.duration < RELAXED_COMMAND_TIMEOUT * 1.1, + result[notification]?.duration >= RELAXED_COMMAND_TIMEOUT && + result[notification]?.duration < RELAXED_COMMAND_TIMEOUT * 1.2, `${notification} notification should timeout within relaxed timeout` ); assert.strictEqual( @@ -138,8 +138,8 @@ describe("Timeout Handling During Notifications", () => { "Command Timeout error should be instanceof Error" ); assert.ok( - duration > NORMAL_COMMAND_TIMEOUT && - duration < NORMAL_COMMAND_TIMEOUT * 1.1, + duration >= NORMAL_COMMAND_TIMEOUT && + duration < NORMAL_COMMAND_TIMEOUT * 1.2, `Normal command should timeout within normal timeout ms` ); assert.strictEqual(