Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b3b26a6

Browse files
authored
test(agent/reaper): Fix restructure issue (#7168)
In #7164 we accidentally removed the "in CI" check, this fixes it.
1 parent bb3b8ba commit b3b26a6

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

agent/reaper/reaper_test.go

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ import (
1818
"github.com/coder/coder/testutil"
1919
)
2020

21-
//nolint:paralleltest // Non-parallel subtest.
21+
// TestReap checks that's the reaper is successfully reaping
22+
// exited processes and passing the PIDs through the shared
23+
// channel.
24+
//
25+
//nolint:paralleltest
2226
func TestReap(t *testing.T) {
2327
// Don't run the reaper test in CI. It does weird
2428
// things like forkexecing which may have unintended
@@ -27,13 +31,6 @@ func TestReap(t *testing.T) {
2731
t.Skip("Detected CI, skipping reaper tests")
2832
}
2933

30-
// OK checks that's the reaper is successfully reaping
31-
// exited processes and passing the PIDs through the shared
32-
// channel.
33-
}
34-
35-
//nolint:paralleltest // Signal handling.
36-
func TestReap_OK(t *testing.T) {
3734
pids := make(reap.PidCh, 1)
3835
err := reaper.ForkReap(
3936
reaper.WithPIDCallback(pids),

0 commit comments

Comments
 (0)