Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nexus] deflake
test_instance_watcher_metrics
(#5768)
Presently, `test_instance_watcher_metrics` will wait for the `instance_watcher` background task to have run before making assertions about metrics, but it does *not* ensure that oximeter has actually collected those metrics. This can result in flaky failures --- see #5752. This commit adds explicit calls to `oximeter.force_collect()` prior to making assertions, to ensure that the latest metrics have been collected. Fixes #5752
- Loading branch information