Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Say how long the run took when the Subprocess test finds it waited

Țugui Dragoș95e2e69cfc08
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/SubprocessTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/SubprocessTests.swift
index a542ca9d..626294a6 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/SubprocessTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/SubprocessTests.swift
@@ -145,6 +145,7 @@ struct SubprocessTests {
let output = try await Subprocess.run("/bin/sh", ["-c", "sleep 60 >&1 & echo done"], timeout: 30).get()
#expect(output.text == "done\n")
- #expect(ContinuousClock.now - started < .seconds(30), "it waited for a child the tool left behind")
+ let took = ContinuousClock.now - started
+ #expect(took < .seconds(30), "it waited for a child the tool left behind, \(took) in all")
}
}