From f2529d075c2695fb37d01999589c59eea16e0ab1 Mon Sep 17 00:00:00 2001 From: George Robinson Date: Thu, 23 Nov 2023 16:21:32 +0000 Subject: [PATCH] Fix lint Signed-off-by: George Robinson --- test/with_api_v2/acceptance.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/with_api_v2/acceptance.go b/test/with_api_v2/acceptance.go index 0ec9657125..fb5501799a 100644 --- a/test/with_api_v2/acceptance.go +++ b/test/with_api_v2/acceptance.go @@ -389,7 +389,9 @@ func (am *Alertmanager) Terminate() { if err := syscall.Kill(am.cmd.Process.Pid, syscall.SIGTERM); err != nil { am.t.Logf("Error sending SIGTERM to Alertmanager process: %v", err) } - am.cmd.Wait() + if err := am.cmd.Wait(); err != nil { + am.t.Logf("Failed to wait for cmd to exit: %v", err) + } } // Reload sends the reloading signal to the Alertmanager instances.