Commit 304c393
committed
test(balloon): ensure we always wait long enough for stats to update
Always wait twice the stats polling interval when trying to a comparison
between "old" and "new" balloon stats. This is to ensure that the "new"
stats are definitely new, and we didn't hit some unlikely race condition
where we request stats right as the device is still in the process of
updating them.
We were seeing intermittent issues such as
test_balloon.py:531: in test_balloon_snapshot
assert stats_after_snap["available_memory"]
> latest_stats["available_memory"]
E assert 186281984 > 186281984
Signed-off-by: Patrick Roy <roypat@amazon.co.uk>1 parent 357dedc commit 304c393
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
| 436 | + | |
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
| 500 | + | |
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | | - | |
| 526 | + | |
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
| |||
0 commit comments