test: Skip tests that send os.Interrupt to test pid (#7695)

This can cause test flakes due to clitest commands running in memory and
listening to interrupt signals.
This commit is contained in:
Mathias Fredriksson
2023-05-26 16:17:09 +03:00
committed by GitHub
parent 795050bba3
commit 05efd64320
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -82,6 +82,8 @@ func TestProvisionerJob(t *testing.T) {
// This cannot be ran in parallel because it uses a signal.
// nolint:paralleltest
t.Run("Cancel", func(t *testing.T) {
t.Skip("This test issues an interrupt signal which will propagate to the test runner.")
if runtime.GOOS == "windows" {
// Sending interrupt signal isn't supported on Windows!
t.SkipNow()
+2
View File
@@ -1491,6 +1491,8 @@ func TestServer_Production(t *testing.T) {
//nolint:tparallel,paralleltest // This test cannot be run in parallel due to signal handling.
func TestServer_Shutdown(t *testing.T) {
t.Skip("This test issues an interrupt signal which will propagate to the test runner.")
if runtime.GOOS == "windows" {
// Sending interrupt signal isn't supported on Windows!
t.SkipNow()