Commit 1bc0087
authored
[core] improve assertion check in test_task_metrics (ray-project#53958)
I'm investigating the flakiness of test_task_metrics on Windows.
Currently, when the test fails, it logs only a generic error message
(see [build
log](https://buildkite.com/ray-project/postmerge/builds/10962/steps/canvas?jid=019788f1-08fe-4509-a42e-85cd1f1b6e37#019788f1-08fe-4509-a42e-85cd1f1b6e37/1546-1688)),
which makes debugging difficult. I'm replacing wait_for_condition with
wait_for_assertion, a more informative alternative that logs the actual
value being tested, making it easier to identify what went wrong.
Test:
-CI
Signed-off-by: Cuong Nguyen <can@anyscale.com>1 parent 6f4c704 commit 1bc0087
1 file changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
155 | | - | |
156 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
157 | 164 | | |
158 | 165 | | |
159 | 166 | | |
| |||
190 | 197 | | |
191 | 198 | | |
192 | 199 | | |
193 | | - | |
194 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
195 | 208 | | |
196 | 209 | | |
197 | 210 | | |
| |||
0 commit comments