Skip to content

Commit

Permalink
1.5.14
Browse files Browse the repository at this point in the history
  • Loading branch information
dankinsoid committed Apr 8, 2024
1 parent 1be99a2 commit 80e113c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ import PackageDescription
let package = Package(
name: "SomeProject",
dependencies: [
.package(url: "https://github.com/dankinsoid/swift-api-client.git", from: "1.5.13")
.package(url: "https://github.com/dankinsoid/swift-api-client.git", from: "1.5.14")
],
targets: [
.target(
Expand Down
6 changes: 4 additions & 2 deletions Tests/SwiftAPIClientTests/UtilsTests/WithTimeoutTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ final class WithTimeoutTests: XCTestCase {
}
}

#if swift(>=5.9)
func test_withTimeout_timeout() async {
do {
_ = try await withTimeout(.milliseconds(50)) {
_ = try await withTimeout(.milliseconds(5)) {
try await ContinuousClock().sleep(until: ContinuousClock().now.advanced(by: .seconds(1)))
return
}
Expand All @@ -33,8 +34,9 @@ final class WithTimeoutTests: XCTestCase {

func test_withTimeout_success() async throws {
_ = try await withTimeout(.seconds(1)) {
try await ContinuousClock().sleep(until: ContinuousClock().now.advanced(by: .milliseconds(50)))
try await ContinuousClock().sleep(until: ContinuousClock().now.advanced(by: .milliseconds(5)))
return
}
}
#endif
}

0 comments on commit 80e113c

Please sign in to comment.