From c1f9af28dfc5ed05fb6f5a1ce7fb3e5f138de2c6 Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Wed, 7 Jun 2023 16:28:35 -0700 Subject: [PATCH] Fix for longhorn integration test Signed-off-by: Derek Nola --- tests/integration/longhorn/longhorn_int_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/longhorn/longhorn_int_test.go b/tests/integration/longhorn/longhorn_int_test.go index 7bade6cc222a..e4c475e71605 100644 --- a/tests/integration/longhorn/longhorn_int_test.go +++ b/tests/integration/longhorn/longhorn_int_test.go @@ -139,7 +139,7 @@ var _ = AfterEach(func() { }) var _ = AfterSuite(func() { - if !testutil.IsExistingServer() { + if !testutil.IsExistingServer() && server != nil { if failed { testutil.K3sSaveLog(server, false) }