From c98137ddcab7461998c41b1ed018a29e9dc92d61 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Fri, 5 May 2023 20:09:40 +0000 Subject: [PATCH] Fix token startup test Signed-off-by: Brad Davidson --- tests/e2e/startup/startup_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/e2e/startup/startup_test.go b/tests/e2e/startup/startup_test.go index 64b35d3d75c4..c806beab7135 100644 --- a/tests/e2e/startup/startup_test.go +++ b/tests/e2e/startup/startup_test.go @@ -257,7 +257,9 @@ var _ = Describe("Various Startup Configurations", Ordered, func() { tokenYAML := "token: aaaaaa.bbbbbbbbbbbbbbbb" err := StartK3sCluster(append(serverNodeNames, agentNodeNames...), tokenYAML, tokenYAML) Expect(err).To(HaveOccurred()) - Expect(err).To(ContainSubstring("failed to normalize server token")) + logs, err := e2e.GetJournalLogs(serverNodeNames[0]) + Expect(err).NotTo(HaveOccurred()) + Expect(logs).To(ContainSubstring("failed to normalize server token")) }) It("Kills the cluster", func() { err := KillK3sCluster(append(serverNodeNames, agentNodeNames...))