Skip to content

Commit

Permalink
Fix build on Apple platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Oct 2, 2023
1 parent da82d72 commit 6eba1df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/FileStreamerTests/FileStreamTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ final class FileStreamTests: XCTestCase {
await coordinator.didFinishWriting()
try writingDesc.close()
}
var waitedDuration: Duration = .seconds(0)
while await !coordinator.hasCompleted && waitedDuration < .seconds(10) {
var waitedNanoseconds: UInt64 = 0
while await !coordinator.hasCompleted && waitedNanoseconds < 10_000_000_000 {
try await Task.sleep(nanoseconds: 100)
waitedDuration += .nanoseconds(100)
waitedNanoseconds += 100
}
if await !coordinator.hasFinishedWriting {
writeTask.cancel()
Expand Down

0 comments on commit 6eba1df

Please sign in to comment.