From 610e1e1bbf9446bcaf483b61b6d47b64f3f209ef Mon Sep 17 00:00:00 2001 From: Dimitris Karakasilis Date: Mon, 16 Dec 2024 14:34:41 +0200 Subject: [PATCH] Try to fix test by checking the correct file for logs Signed-off-by: Dimitris Karakasilis --- tests/provider_upgrade_k8s_test.go | 2 +- tests/provider_upgrade_latest_k8s_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/provider_upgrade_k8s_test.go b/tests/provider_upgrade_k8s_test.go index 9ed4f33c0..cdd6b7fcc 100644 --- a/tests/provider_upgrade_k8s_test.go +++ b/tests/provider_upgrade_k8s_test.go @@ -93,7 +93,7 @@ var _ = Describe("k3s upgrade test", Label("provider", "provider-upgrade-k8s"), By("Checking agent provider correct start") Eventually(func() string { - out, _ := vm.Sudo("cat /var/log/kairos/agent-provider.log") + out, _ := vm.Sudo("cat /var/log/kairos/provider-*.log") return out }, 900*time.Second, 10*time.Second).Should(Or(ContainSubstring("One time bootstrap starting"), ContainSubstring("Sentinel exists"))) diff --git a/tests/provider_upgrade_latest_k8s_test.go b/tests/provider_upgrade_latest_k8s_test.go index 70ad5f9c9..ef3ce4f97 100644 --- a/tests/provider_upgrade_latest_k8s_test.go +++ b/tests/provider_upgrade_latest_k8s_test.go @@ -119,7 +119,7 @@ var _ = Describe("k3s upgrade test from k8s", Label("provider", "provider-upgrad By("Checking agent provider correct start") Eventually(func() string { - out, _ := vm.Sudo("cat /var/log/kairos/agent-provider.log") + out, _ := vm.Sudo("cat /var/log/kairos/provider-*.log") return out }, 900*time.Second, 10*time.Second).Should(Or(ContainSubstring("One time bootstrap starting"), ContainSubstring("Sentinel exists")))