From f81ea12062fc81ade690f534fb6e346275b7d22e Mon Sep 17 00:00:00 2001 From: Paolo Prodossimo Lopes Date: Wed, 14 May 2025 02:45:59 -0300 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=93=9D=20fix=20link=20for=20usie=20pa?= =?UTF-8?q?ckage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1c58679..9e2339e 100644 --- a/README.md +++ b/README.md @@ -64,12 +64,14 @@ struct AuthenticatorMock: Authenticator { ### Using Swift Package Manager -Add to `Package.swift`: +Simply add a package to your project passing in https://github.com/EasyPackages/EasySymbol. + +In your dependency you can add this in your Package.swift: ```swift dependencies: [ .package( - url: "https://github.com/your-username/EasyMock.git", + url: "https://github.com/EasyPackages/EasyMock.git", from: "1.0.0" ) ] From 55dd41eb2d2e56f6cb17481c2044d8edd047f410 Mon Sep 17 00:00:00 2001 From: Paolo Prodossimo Lopes Date: Wed, 14 May 2025 03:06:03 -0300 Subject: [PATCH 2/2] =?UTF-8?q?=E2=9C=85=20improve=20test=20for=20delay?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tests/EasyMockTests/AsyncMockTests.swift | 4 ++-- Tests/EasyMockTests/AsyncThrowableMockTests.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/EasyMockTests/AsyncMockTests.swift b/Tests/EasyMockTests/AsyncMockTests.swift index be6c133..0ea6936 100644 --- a/Tests/EasyMockTests/AsyncMockTests.swift +++ b/Tests/EasyMockTests/AsyncMockTests.swift @@ -152,9 +152,9 @@ struct AsyncMockTests { } @Test("should wait for the configured delay before completing") - func testsynchronizeAppliesDelay() async { + func testsynchronizeAppliesDelay() async throws { let delay = 0.2 - let tolerance = 0.05 + let tolerance = 0.2 let clock = ContinuousClock() let start = clock.now let sut = makeSut() diff --git a/Tests/EasyMockTests/AsyncThrowableMockTests.swift b/Tests/EasyMockTests/AsyncThrowableMockTests.swift index 1100935..9884949 100644 --- a/Tests/EasyMockTests/AsyncThrowableMockTests.swift +++ b/Tests/EasyMockTests/AsyncThrowableMockTests.swift @@ -192,7 +192,7 @@ struct AsyncThrowableMockTests { @Test("should wait for the configured delay before completing") func testsynchronizeAppliesDelay() async throws { let delay = 0.2 - let tolerance = 0.05 + let tolerance = 0.2 let clock = ContinuousClock() let start = clock.now let sut = makeSut()