Skip to content

Commit

Permalink
Revert "Fix flacky case19 e2e test issue"
Browse files Browse the repository at this point in the history
This reverts commit 5375a62.

Signed-off-by: mprahl <[email protected]>
(cherry picked from commit 165d54e)
  • Loading branch information
mprahl authored and Magic Mirror committed Feb 21, 2024
1 parent de09248 commit 277501c
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions test/e2e/case19_rep_policy_placement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,12 @@ var _ = Describe("Test replicated_policy controller and propagation", Ordered, S
clientHubDynamic, gvrPolicy, testNamespace+"."+case19PolicyName, "managed2", true, defaultTimeoutSeconds,
)
Expect(plc2).ToNot(BeNil())

Eventually(func(g Gomega) {
afterString = utils.GetMetrics("controller_runtime_reconcile_total",
`controller=\"replicated-policy\"`,
`,result=\"success\"`,
)[0]
afterTotal, err = strconv.Atoi(afterString)
g.Expect(err).ShouldNot(HaveOccurred())
g.Expect(afterTotal - beforeTotal).Should(Equal(2))
}).Should(Succeed())
afterString = utils.GetMetrics("controller_runtime_reconcile_total",
`controller=\"replicated-policy\"`,
`,result=\"success\"`,
)[0]
afterTotal, err = strconv.Atoi(afterString)
Expect(err).ShouldNot(HaveOccurred())
Expect(afterTotal - beforeTotal).Should(Equal(2))
})
})

0 comments on commit 277501c

Please sign in to comment.