Skip to content

Commit bab26b0

Browse files
authored
test(maint): touch up wrong assertions (#3096)
1 parent adb19c5 commit bab26b0

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

packages/client/lib/tests/test-scenario/timeout-during-notifications.e2e.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ describe("Timeout Handling During Notifications", () => {
8282
"Command Timeout error should be instanceof Error"
8383
);
8484
assert.ok(
85-
duration > NORMAL_COMMAND_TIMEOUT &&
86-
duration < NORMAL_COMMAND_TIMEOUT * 1.1,
85+
duration >= NORMAL_COMMAND_TIMEOUT &&
86+
duration < NORMAL_COMMAND_TIMEOUT * 1.2,
8787
`Normal command should timeout within normal timeout ms`
8888
);
8989
assert.strictEqual(
@@ -128,8 +128,8 @@ describe("Timeout Handling During Notifications", () => {
128128
`${notification} notification error should be instanceof Error`
129129
);
130130
assert.ok(
131-
result[notification]?.duration > RELAXED_COMMAND_TIMEOUT &&
132-
result[notification]?.duration < RELAXED_COMMAND_TIMEOUT * 1.1,
131+
result[notification]?.duration >= RELAXED_COMMAND_TIMEOUT &&
132+
result[notification]?.duration < RELAXED_COMMAND_TIMEOUT * 1.2,
133133
`${notification} notification should timeout within relaxed timeout`
134134
);
135135
assert.strictEqual(
@@ -165,7 +165,7 @@ describe("Timeout Handling During Notifications", () => {
165165
);
166166
assert.ok(
167167
durationMigrate >= NORMAL_COMMAND_TIMEOUT &&
168-
durationMigrate < NORMAL_COMMAND_TIMEOUT * 1.1,
168+
durationMigrate < NORMAL_COMMAND_TIMEOUT * 1.2,
169169
`Normal command should timeout within normal timeout ms`
170170
);
171171
assert.strictEqual(
@@ -200,7 +200,7 @@ describe("Timeout Handling During Notifications", () => {
200200
);
201201
assert.ok(
202202
durationBind >= NORMAL_COMMAND_TIMEOUT &&
203-
durationBind < NORMAL_COMMAND_TIMEOUT * 1.1,
203+
durationBind < NORMAL_COMMAND_TIMEOUT * 1.2,
204204
`Normal command should timeout within normal timeout ms`
205205
);
206206
assert.strictEqual(

packages/client/lib/tests/test-scenario/to-failover.e2e.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ describe("Timeout Handling During Notifications", () => {
105105
`${notification} notification error should be instanceof Error`
106106
);
107107
assert.ok(
108-
result[notification]?.duration > RELAXED_COMMAND_TIMEOUT &&
109-
result[notification]?.duration < RELAXED_COMMAND_TIMEOUT * 1.1,
108+
result[notification]?.duration >= RELAXED_COMMAND_TIMEOUT &&
109+
result[notification]?.duration < RELAXED_COMMAND_TIMEOUT * 1.2,
110110
`${notification} notification should timeout within relaxed timeout`
111111
);
112112
assert.strictEqual(
@@ -138,8 +138,8 @@ describe("Timeout Handling During Notifications", () => {
138138
"Command Timeout error should be instanceof Error"
139139
);
140140
assert.ok(
141-
duration > NORMAL_COMMAND_TIMEOUT &&
142-
duration < NORMAL_COMMAND_TIMEOUT * 1.1,
141+
duration >= NORMAL_COMMAND_TIMEOUT &&
142+
duration < NORMAL_COMMAND_TIMEOUT * 1.2,
143143
`Normal command should timeout within normal timeout ms`
144144
);
145145
assert.strictEqual(

0 commit comments

Comments
 (0)