Use RAII to handle inotify resource lifetime, i.e. initialize with actor creation and deinitialize with actor deletion.
10 lines
158 B
Swift
10 lines
158 B
Swift
import Testing
|
|
@testable import Inotify
|
|
|
|
@Suite("Initialisation")
|
|
struct InitTests {
|
|
@Test func createsCleanly() async throws {
|
|
let _ = try Inotify()
|
|
}
|
|
}
|