Skip to content

Commit

Permalink
Merge pull request #2161 from Nordix/kashif/fix-metrics-service
Browse files Browse the repository at this point in the history
🌱 Add intervals while checking metrics service
  • Loading branch information
metal3-io-bot authored Jan 2, 2025
2 parents e5c8c6f + a2525b6 commit 7e82f51
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,14 @@ var _ = SynchronizedBeforeSuite(func() []byte {

By("validating that the metrics service is available")
cmd = exec.Command("kubectl", "get", "service", metricsServiceName, "-n", namespace)
_, err = cmd.CombinedOutput()
Expect(err).NotTo(HaveOccurred(), "Metrics service should exist")
Eventually(func() error {
output, err := cmd.CombinedOutput()
if err != nil {
fmt.Printf("Command output: %s\n", string(output))
return err
}
return nil
}, "30s", "5s").Should(Succeed())

By("getting the service account token")
token, err := serviceAccountToken()
Expand Down

0 comments on commit 7e82f51

Please sign in to comment.