You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests: fix flaky timeout assertion in maintenance notification test (#3143)
* Add debug info to assertion messages for root cause analysis
* Fix flaky timeout assertion in maintenance notification test
* Apply same tolerance fix to NORMAL_COMMAND_TIMEOUT assertions
"Command Timeout error should be instanceof Error"
165
165
);
166
166
assert.ok(
167
-
durationMigrate>=NORMAL_COMMAND_TIMEOUT&&
167
+
durationMigrate>=NORMAL_COMMAND_TIMEOUT*0.8&&
168
168
durationMigrate<NORMAL_COMMAND_TIMEOUT*1.2,
169
-
`Normal command should timeout within normal timeout ms`
169
+
`Normal command should timeout within normal timeout ms. Duration: ${durationMigrate}, Expected: [${NORMAL_COMMAND_TIMEOUT*0.8}, ${NORMAL_COMMAND_TIMEOUT*1.2})`
"Command Timeout error should be instanceof Error"
200
200
);
201
201
assert.ok(
202
-
durationBind>=NORMAL_COMMAND_TIMEOUT&&
202
+
durationBind>=NORMAL_COMMAND_TIMEOUT*0.8&&
203
203
durationBind<NORMAL_COMMAND_TIMEOUT*1.2,
204
-
`Normal command should timeout within normal timeout ms`
204
+
`Normal command should timeout within normal timeout ms. Duration: ${durationBind}, Expected: [${NORMAL_COMMAND_TIMEOUT*0.8}, ${NORMAL_COMMAND_TIMEOUT*1.2})`
0 commit comments