From b10914dcd5d431f366ccb6b9a4539306f8e5d4ed Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 19 Sep 2025 20:00:29 +0200 Subject: [PATCH] Revert "common/daemon: test if sending SIGINT terminates the component" This reverts commit 7859cb00190507105339b9f3d135a0507be8c5f2. This seems to break randomly when the process is encapsulated (during coverage?). --- common/daemon/root_test.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/common/daemon/root_test.go b/common/daemon/root_test.go index fe835638..f713304e 100644 --- a/common/daemon/root_test.go +++ b/common/daemon/root_test.go @@ -5,10 +5,8 @@ package daemon import ( "errors" - "syscall" "testing" "testing/synctest" - "time" "gopkg.in/tomb.v2" @@ -45,23 +43,6 @@ func TestTerminate(t *testing.T) { c.Terminate() // Can be called several times. } -func TestTerminateWithSignal(t *testing.T) { - r := reporter.NewMock(t) - c, err := New(r) - if err != nil { - t.Fatalf("New() error:\n%+v", err) - } - helpers.StartStop(t, c) - - syscall.Kill(syscall.Getpid(), syscall.SIGINT) - select { - case <-c.Terminated(): - // OK - case <-time.After(time.Second): - t.Fatalf("Terminated() wasn't closed while we requested it to be") - } -} - func TestStop(t *testing.T) { r := reporter.NewMock(t) c, err := New(r)