From a79c45c4ad38811ecab59a64fea94cf8a98a01e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kodes=CC=8C?= Date: Thu, 1 Feb 2024 18:41:46 +0100 Subject: [PATCH] [feat]: Increase timeouts --- .../EndpointRequestStorageProcessorTests.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Tests/NetworkingTests/EndpointRequestStorageProcessorTests.swift b/Tests/NetworkingTests/EndpointRequestStorageProcessorTests.swift index ab4dea68..415f80f0 100644 --- a/Tests/NetworkingTests/EndpointRequestStorageProcessorTests.swift +++ b/Tests/NetworkingTests/EndpointRequestStorageProcessorTests.swift @@ -116,11 +116,11 @@ final class EndpointRequestStorageProcessorTests: XCTestCase { ) _ = try await processor.process(mockResponse, with: mockURLRequest, for: mockEndpointRequest) - await fulfillment(of: [expectation], timeout: 20) + await fulfillment(of: [expectation], timeout: 60) mockFileManager.verifyFunctionCall(.fileExists(path: responsesDirectory(for: mockEndpointRequest).path)) mockFileManager.verifyFunctionCall(.createDirectory(path: responsesDirectory(for: mockEndpointRequest).path)) - + XCTAssertEqual(mockFileDataWriter.receivedURL, fileUrl(for: mockEndpointRequest)) } @@ -151,7 +151,7 @@ final class EndpointRequestStorageProcessorTests: XCTestCase { ) _ = try await processor.process(mockResponse, with: mockURLRequest, for: mockEndpointRequest) - await fulfillment(of: [expectation], timeout: 20) + await fulfillment(of: [expectation], timeout: 60) let receivedData = try XCTUnwrap(mockFileDataWriter.receivedData) let model = try JSONDecoder().decode(EndpointRequestStorageModel.self, from: receivedData) @@ -205,7 +205,7 @@ final class EndpointRequestStorageProcessorTests: XCTestCase { ) _ = try await processor.process(mockResponse, with: mockURLRequest, for: mockEndpointRequest) - await fulfillment(of: [expectation], timeout: 20) + await fulfillment(of: [expectation], timeout: 60) let receivedData = try XCTUnwrap(mockFileDataWriter.receivedData) let model = try JSONDecoder().decode(EndpointRequestStorageModel.self, from: receivedData) @@ -257,7 +257,7 @@ final class EndpointRequestStorageProcessorTests: XCTestCase { _ = await processor.process(mockError, for: mockEndpointRequest) - await fulfillment(of: [expectation], timeout: 20) + await fulfillment(of: [expectation], timeout: 60) let receivedData = try XCTUnwrap(mockFileDataWriter.receivedData) @@ -304,7 +304,7 @@ final class EndpointRequestStorageProcessorTests: XCTestCase { ) _ = try await processor.process(mockResponse, with: mockURLRequest, for: mockEndpointRequest) - await fulfillment(of: [expectation], timeout: 20) + await fulfillment(of: [expectation], timeout: 60) let receivedData = try XCTUnwrap(mockFileDataWriter.receivedData)