Skip to content

Commit 05efd64

Browse files
authored
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.
1 parent 795050b commit 05efd64

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cli/cliui/provisionerjob_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ func TestProvisionerJob(t *testing.T) {
8282
// This cannot be ran in parallel because it uses a signal.
8383
// nolint:paralleltest
8484
t.Run("Cancel", func(t *testing.T) {
85+
t.Skip("This test issues an interrupt signal which will propagate to the test runner.")
86+
8587
if runtime.GOOS == "windows" {
8688
// Sending interrupt signal isn't supported on Windows!
8789
t.SkipNow()

cli/server_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,8 @@ func TestServer_Production(t *testing.T) {
14911491

14921492
//nolint:tparallel,paralleltest // This test cannot be run in parallel due to signal handling.
14931493
func TestServer_Shutdown(t *testing.T) {
1494+
t.Skip("This test issues an interrupt signal which will propagate to the test runner.")
1495+
14941496
if runtime.GOOS == "windows" {
14951497
// Sending interrupt signal isn't supported on Windows!
14961498
t.SkipNow()

0 commit comments

Comments
 (0)