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.

Give the folder watch tests as long as work at utility quality can wait

Țugui Dragoș0c8ff3e68f7b
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/FolderWatchTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/FolderWatchTests.swift
index 56e2a0ac..7bf981cf 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/FolderWatchTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/FolderWatchTests.swift
@@ -5,9 +5,10 @@ import Synchronization
import Testing
struct FolderWatchTests {
- /// Each wait returns at the first change, so only a broken watch waits this long; a busy Mac can hold FSEvents
- /// back for many seconds.
- private static let patience = Duration.seconds(60)
+ /// Each wait returns at the first change, so only a broken watch waits this long. The watch answers at utility
+ /// quality, which gets no thread while every thread of Swift's pool is busy at a higher one, as for most of a
+ /// whole test run on a Mac with few processors.
+ private static let patience = Duration.seconds(600)
/// The stream keeps the last change, so one that lands before anyone reads is not lost.
@Test func saysWhenSomethingAppearsInAFolder() async throws {