Skip to content

Commit

Permalink
Increase sleeping time in testScalerErrors (prometheus_metrics_test.g…
Browse files Browse the repository at this point in the history
  • Loading branch information
Parthiba-Hazra authored May 1, 2023
1 parent 57908a4 commit 1a8ef85
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ func testScalerErrors(t *testing.T, data templateData) {
if val, ok := family["keda_scaler_errors"]; ok {
errCounterVal1 := getErrorMetricsValue(val)

// wait for 2 seconds as pollinginterval is 2
time.Sleep(2 * time.Second)
// wait for 4 seconds to correctly fetch metrics.
time.Sleep(4 * time.Second)

family = fetchAndParsePrometheusMetrics(t, fmt.Sprintf("curl --insecure %s", kedaOperatorPrometheusURL))
if val, ok := family["keda_scaler_errors"]; ok {
Expand Down

0 comments on commit 1a8ef85

Please sign in to comment.