-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up functional tests with ops_test.fast_forward() (#65)
ops_test.fast_forward() temporarily speeds up the update-status firing rate. This is effectively equal to setting and resetting the "update-status-hook-interval" model config before and after the relevant code. Previously, we would have had to spend 5m waiting for the unit status change to be detected after any state change to the hardware-exporter systemd service. Refer: https://github.com/charmed-kubernetes/pytest-operator/blob/main/docs/reference.md#async-def-fast_forwardself-fast_interval-str--10s-slow_interval-optionalstr--none
- Loading branch information
Showing
1 changed file
with
24 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters