From 80e113ceaffff2631eb65d9277988b67fc8fe807 Mon Sep 17 00:00:00 2001 From: dankinsoid <30962149+dankinsoid@users.noreply.github.com> Date: Mon, 8 Apr 2024 13:57:27 +0300 Subject: [PATCH] 1.5.14 --- README.md | 2 +- Tests/SwiftAPIClientTests/UtilsTests/WithTimeoutTests.swift | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0e3b606..38ba1ff 100644 --- a/README.md +++ b/README.md @@ -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( diff --git a/Tests/SwiftAPIClientTests/UtilsTests/WithTimeoutTests.swift b/Tests/SwiftAPIClientTests/UtilsTests/WithTimeoutTests.swift index 54177c6..fa504cf 100644 --- a/Tests/SwiftAPIClientTests/UtilsTests/WithTimeoutTests.swift +++ b/Tests/SwiftAPIClientTests/UtilsTests/WithTimeoutTests.swift @@ -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 } @@ -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 }