From 9b80185d33051a1e10ef14865b6ceb0ecaeae184 Mon Sep 17 00:00:00 2001 From: Mario Valderrama Date: Thu, 5 Dec 2024 13:23:41 +0100 Subject: [PATCH] Fix NPE in SynchronizedAfterSuite --- test/e2e/env_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/env_test.go b/test/e2e/env_test.go index b80f37dc..310fc2ac 100644 --- a/test/e2e/env_test.go +++ b/test/e2e/env_test.go @@ -79,7 +79,7 @@ func (e *ionosCloudEnv) setup() { } func (e *ionosCloudEnv) teardown() { - if !skipCleanup { + if !skipCleanup && e.api != nil { By("Deleting environment resources") By("Requesting the deletion of the data center")