From b9c7c93f7f5c19689c2d7642878d90db5ea60051 Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Tue, 21 Nov 2023 20:52:40 +0200 Subject: [PATCH] Fix linting issues Signed-off-by: Gabriel Adrian Samfira --- test/integration/main.go | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/test/integration/main.go b/test/integration/main.go index 44157539..04b96861 100644 --- a/test/integration/main.go +++ b/test/integration/main.go @@ -2,6 +2,7 @@ package main import ( "fmt" + "log" "os" "time" @@ -117,13 +118,22 @@ func main() { ///////////////////////////// repoPool2 := e2e.CreateRepoPool(repo.ID, repoPoolParams2) _ = e2e.UpdateRepoPool(repo.ID, repoPool2.ID, repoPoolParams2.MaxRunners, 1) - e2e.WaitPoolInstances(repoPool2.ID, commonParams.InstanceRunning, params.RunnerPending, 1*time.Minute) + err := e2e.WaitPoolInstances(repoPool2.ID, commonParams.InstanceRunning, params.RunnerPending, 1*time.Minute) + if err != nil { + log.Printf("Failed to wait for instance to be running: %v", err) + } repoPool2 = e2e.GetRepoPool(repo.ID, repoPool2.ID) e2e.DisableRepoPool(repo.ID, repoPool2.ID) e2e.DeleteInstance(repoPool2.Instances[0].Name, false) - e2e.WaitPoolInstances(repoPool2.ID, commonParams.InstancePendingDelete, params.RunnerPending, 1*time.Minute) + err = e2e.WaitPoolInstances(repoPool2.ID, commonParams.InstancePendingDelete, params.RunnerPending, 1*time.Minute) + if err != nil { + log.Printf("Failed to wait for instance to be running: %v", err) + } e2e.DeleteInstance(repoPool2.Instances[0].Name, true) // delete instance with forceRemove - e2e.WaitInstanceToBeRemoved(repoPool2.Instances[0].Name, 1*time.Minute) + err = e2e.WaitInstanceToBeRemoved(repoPool2.Instances[0].Name, 1*time.Minute) + if err != nil { + log.Printf("Failed to wait for instance to be removed: %v", err) + } e2e.DeleteRepoPool(repo.ID, repoPool2.ID) ///////////////////