Skip to content

Commit

Permalink
ci/cli: fix sporadic timeouts in uninstall-operator
Browse files Browse the repository at this point in the history
Signed-off-by: Loic Devulder <[email protected]>
  • Loading branch information
ldevulder committed Sep 26, 2024
1 parent 7a0a641 commit c726372
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/e2e/uninstall-operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,14 @@ var _ = Describe("E2E - Uninstall Elemental Operator", Label("uninstall-operator
Expect(err).To(Not(HaveOccurred()))

for _, machine := range strings.Fields(machineList) {
internalMachine, err := elemental.GetInternalMachine(clusterNS, machine)
Expect(err).To(Not(HaveOccurred()))
var internalMachine string

// Sporadic timeouts can occur sometimes
Eventually(func() error {
var err error
internalMachine, err = elemental.GetInternalMachine(clusterNS, machine)
return err
}, tools.SetTimeout(1*time.Minute), 10*time.Second).Should(Not(HaveOccurred()))

// Delete blocking Finalizers
GinkgoWriter.Printf("Deleting Finalizers for MachineInventory '%s'...\n", machine)
Expand Down

0 comments on commit c726372

Please sign in to comment.