Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
skip reaper tests in CI
  • Loading branch information
sreya committed Jun 17, 2022
commit c66d7be8a424aa60535d12d568ffb86cbb0fe975
8 changes: 8 additions & 0 deletions agent/reaper/reaper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package reaper_test

import (
"os"
"os/exec"
"testing"
"time"
Expand All @@ -16,6 +17,13 @@ import (
func TestReap(t *testing.T) {
t.Parallel()

// Don't run the reaper test in CI. It does weird
// things like forkexecing which may have unintended
// consequences in CI.
if _, ok := os.LookupEnv("CI"); ok {
t.Skip("Detected CI, skipping reaper tests")
}

// Because we're forkexecing these tests will try to run twice...
if reaper.IsChild() {
t.Skip("I'm a child!")
Expand Down