1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2026-03-30 16:30:09 +02:00

♻️ Refactor file watchers

This commit is contained in:
2025-11-29 22:33:39 +01:00
parent ac28e4425b
commit e968263568
12 changed files with 361 additions and 318 deletions

View File

@@ -41,10 +41,6 @@ struct FSNotifierTest {
}
)
defer {
notifier.terminate()
}
// Modify the file, twice
try "hello".write(to: testFile, atomically: false, encoding: .utf8)
try "hello".write(to: testFile, atomically: false, encoding: .utf8)
@@ -59,5 +55,8 @@ struct FSNotifierTest {
// Verify after another second, our second write is actually noted
await delay(seconds: 1.2)
#expect(eventFired.value == 2)
// Clean up notifier
notifier.terminate()
}
}