Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: George Robinson <[email protected]>
  • Loading branch information
grobinson-grafana committed Nov 1, 2023
1 parent 7cdecbf commit 3290762
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/with_api_v2/acceptance.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,12 @@ func (amc *AlertmanagerCluster) Terminate() {
// data.
func (am *Alertmanager) Terminate() {
am.t.Helper()
if am.cmd == nil {
panic("here1")
}
if am.cmd.Process == nil {
panic("here2")
}
if err := syscall.Kill(am.cmd.Process.Pid, syscall.SIGTERM); err != nil {
am.t.Logf("Error sending SIGTERM to Alertmanager process: %v", err)
}
Expand Down

0 comments on commit 3290762

Please sign in to comment.