Skip to content

Commit de15b79

Browse files
Merge branch 'master' into fix_space_count
2 parents 7890707 + 0f1f551 commit de15b79

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/metrics/metrics_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,10 @@ func TestForceMetricsSynchronization(t *testing.T) {
735735

736736
// then
737737
require.NoError(t, err)
738+
// wait for the deployment to be ready again (this ensures pods are deleted and recreated)
739+
hostAwait.WaitForDeploymentToGetReady(t, "host-operator-controller-manager", 1)
740+
// wait for metrics service to be available
741+
hostAwait.WaitForMetricsService(t)
738742
// metrics have not changed yet
739743
hostAwait.WaitForMetricDelta(t, wait.MasterUserRecordsPerDomainMetric, 0, "domain", "external") // value was increased by 1
740744
hostAwait.WaitForMetricDelta(t, wait.UsersPerActivationsAndDomainMetric, 0, "activations", "1", "domain", "external") // value was increased by 1
@@ -750,6 +754,10 @@ func TestForceMetricsSynchronization(t *testing.T) {
750754

751755
// then
752756
require.NoError(t, err)
757+
// wait for the deployment to be ready again (this ensures pods are deleted and recreated)
758+
hostAwait.WaitForDeploymentToGetReady(t, "host-operator-controller-manager", 1)
759+
// wait for metrics service to be available
760+
hostAwait.WaitForMetricsService(t)
753761
// metrics have been updated
754762
hostAwait.WaitForMetricDelta(t, wait.MasterUserRecordsPerDomainMetric, 0, "domain", "external") // unchanged
755763
hostAwait.WaitForMetricDelta(t, wait.UsersPerActivationsAndDomainMetric, 2, "activations", "10", "domain", "external") // updated

0 commit comments

Comments
 (0)