Skip to content

Commit

Permalink
tests: added snap restart to ensure cpu limits get respected (#14435)
Browse files Browse the repository at this point in the history
  • Loading branch information
maykathm authored Sep 2, 2024
1 parent 861450d commit c63e18d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/main/snap-quota-cpu/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ execute: |
echo "Update the quota to a lower percentage while running"
snap set-quota group-one --cpu=1x20%
echo "Restart the snap to ensure the new limits are in effect"
snap restart test-snapd-stressd
echo "Verifying quota cpu usage, expecting around 20% usage"
# allow for up to 10% difference, this is necessary due to how we measure
ensure_cpu_usage_lower_than "stress" 30
Expand Down

0 comments on commit c63e18d

Please sign in to comment.