Skip to content

Commit c4260f0

Browse files
committed
test(TestUserWorkloadMonitoringMetrics): increase timeout to 3m as some Pods may require more that 1m to become ready and get scraped by Prometheus for the first time
1 parent 73c6488 commit c4260f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/user_workload_monitoring_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,9 @@ func assertMetricsForMonitoringComponents(t *testing.T) {
349349
} {
350350
t.Run(service, func(t *testing.T) {
351351
f.ThanosQuerierClient.WaitForQueryReturn(
352-
// To avoid making the test wait for more than lookback-delta in case Prometheus
353-
// wasn't able to write stale markers (because it was down), reduce the lookup period.
354-
t, time.Minute, fmt.Sprintf(`count(last_over_time(up{service="%s",namespace="openshift-user-workload-monitoring"}[1m]) == 1)`, service),
352+
// To avoid having to make the test run for more than lookback-delta in case Prometheus
353+
// wasn't able to write stale markers (because it was down), reduce the lookup period and the timeout.
354+
t, 3*time.Minute, fmt.Sprintf(`count(last_over_time(up{service="%s",namespace="openshift-user-workload-monitoring"}[1m]) == 1)`, service),
355355
func(v float64) error {
356356
if v == float64(expected) {
357357
return nil

0 commit comments

Comments
 (0)