-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use APIs available on older macOS in tests (#25)
### Motivation The tests fail to compile on anything older than macOS 13, because they use a number of APIs only available in macOS 13+: - `Duration` - `Task.sleep(for:)` - `DispatchQueue.asyncAndWait` (closure variant) ### Modifications Use the following APIs instead: - `NIO.TimeInterval` (we have NIO dependency in tests already). - `Task.sleep(nanoseconds:)` - `DispatchQueue.asyncAndWait(execute:)` ### Result Tests can be built on older platforms.
- Loading branch information
1 parent
686df72
commit 8464a53
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters