Skip to content

Commit

Permalink
fix e2e startup flaky test (#7839)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Cardoso <osodracnai@gmail.com>
(cherry picked from commit 324f9ad)
  • Loading branch information
osodracnai committed Jul 7, 2023
1 parent 27ac011 commit f22bcd4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/e2e/startup/startup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,12 @@ var _ = Describe("Various Startup Configurations", Ordered, func() {
tokenYAML := "token: aaaaaa.bbbbbbbbbbbbbbbb"
err := StartK3sCluster(append(serverNodeNames, agentNodeNames...), tokenYAML, tokenYAML)
Expect(err).To(HaveOccurred())
logs, err := e2e.GetJournalLogs(serverNodeNames[0])
Expect(err).NotTo(HaveOccurred())
Expect(logs).To(ContainSubstring("failed to normalize server token"))
Eventually(func(g Gomega) {
logs, err := e2e.GetJournalLogs(serverNodeNames[0])
g.Expect(err).NotTo(HaveOccurred())
g.Expect(logs).To(ContainSubstring("failed to normalize server token"))
}, "120s", "5s").Should(Succeed())

})
It("Kills the cluster", func() {
err := KillK3sCluster(append(serverNodeNames, agentNodeNames...))
Expand Down

0 comments on commit f22bcd4

Please sign in to comment.