Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

test: wait longer between kubectl top nodes retries #543

Merged
merged 2 commits into from
Feb 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/e2e/kubernetes/kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ var _ = Describe("Azure Container Cluster using the Kubernetes Orchestrator", fu
It("should be able to get nodes metrics", func() {
if eng.ExpandedDefinition.Properties.OrchestratorProfile.KubernetesConfig.IsRBACEnabled() {
success := false
for i := 0; i < 30; i++ {
for i := 0; i < 10; i++ {
cmd := exec.Command("kubectl", "top", "nodes")
util.PrintCommand(cmd)
out, err := cmd.CombinedOutput()
Expand All @@ -649,6 +649,7 @@ var _ = Describe("Azure Container Cluster using the Kubernetes Orchestrator", fu
}
log.Println(string(out))
}
time.Sleep(1 * time.Minute)
}
Expect(success).To(BeTrue())
}
Expand Down