mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user