Skip to content

Commit 370f301

Browse files
Add timeout to testDoesNotReapUnrelatedChildProcess() (#267)
Add a timeout to prevent non-deterministically hangs which consume the full CI job timeout with no actionable signal.
1 parent 366b569 commit 370f301

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Tests/SubprocessTests/ProcessMonitoringTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ extension SubprocessProcessMonitoringTests {
229229
}
230230
}
231231

232-
@Test func testDoesNotReapUnrelatedChildProcess() async throws {
232+
@Test(.timeLimit(.minutes(1)))
233+
func testDoesNotReapUnrelatedChildProcess() async throws {
233234
// Make sure we don't reap child exit status that we didn't spawn
234235
let child1 = self.immediateExitProcess(withExitCode: 0)
235236
let child2 = self.immediateExitProcess(withExitCode: 0)

0 commit comments

Comments
 (0)