Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/integration_tests/functional/test_balloon.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def test_stats_update(uvm_plain_any):
test_microvm.api.balloon.patch(amount_mib=10)

# Wait out the polling interval, then get the updated stats.
time.sleep(STATS_POLLING_INTERVAL_S)
time.sleep(STATS_POLLING_INTERVAL_S * 2)
next_stats = test_microvm.api.balloon_stats.get().json()
assert initial_stats["available_memory"] != next_stats["available_memory"]

Expand Down Expand Up @@ -497,7 +497,7 @@ def test_balloon_snapshot(microvm_factory, guest_kernel, rootfs):
firecracker_pid = microvm.firecracker_pid

# Wait out the polling interval, then get the updated stats.
time.sleep(STATS_POLLING_INTERVAL_S)
time.sleep(STATS_POLLING_INTERVAL_S * 2)
stats_after_snap = microvm.api.balloon_stats.get().json()

# Check memory usage.
Expand All @@ -523,7 +523,7 @@ def test_balloon_snapshot(microvm_factory, guest_kernel, rootfs):
# Get the stats after we take a snapshot and dirty some memory,
# then reclaim it.
# Ensure we gave enough time for the stats to update.
time.sleep(STATS_POLLING_INTERVAL_S)
time.sleep(STATS_POLLING_INTERVAL_S * 2)
latest_stats = microvm.api.balloon_stats.get().json()

# Ensure the stats are still working after restore and show
Expand Down