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.

Wait for Homebrew's help however long a busy machine takes to give it

Țugui Dragoș39beebb77c91
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/HomebrewTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/HomebrewTests.swift
index 13c4748e..00c9f813 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/HomebrewTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/HomebrewTests.swift
@@ -201,9 +201,11 @@ struct HomebrewTests {
#expect(Homebrew.repairTapsArguments == ["tap", "--repair"])
guard Homebrew.executableURL != nil else { return }
- let cleanup = try await Homebrew.execute(["cleanup", "--help"], autoUpdate: false, timeout: 30).transcript()
+ // No time limit: at a low priority on a busy machine Ruby alone can outlast one, and what this checks is
+ // Homebrew's words.
+ let cleanup = try await Homebrew.execute(["cleanup", "--help"], autoUpdate: false, timeout: nil).transcript()
#expect(cleanup.contains("--prune") && cleanup.contains("--scrub"))
- let tap = try await Homebrew.execute(["tap", "--help"], autoUpdate: false, timeout: 30).transcript()
+ let tap = try await Homebrew.execute(["tap", "--help"], autoUpdate: false, timeout: nil).transcript()
#expect(tap.contains("--repair"))
}