Skip to content

Commit

Permalink
[feat]: Increase timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkodes committed Feb 1, 2024
1 parent a90c35c commit a79c45c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Tests/NetworkingTests/EndpointRequestStorageProcessorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 119 in Tests/NetworkingTests/EndpointRequestStorageProcessorTests.swift

View workflow job for this annotation

GitHub Actions / macOS 13, Xcode 15.2 Test Results

Assertion Failure

Asynchronous wait failed: Exceeded timeout of 60 seconds, with unfulfilled expectations: "Data was written".

Check failure on line 119 in Tests/NetworkingTests/EndpointRequestStorageProcessorTests.swift

View workflow job for this annotation

GitHub Actions / iOS 17.2 Test Results

Assertion Failure

Asynchronous wait failed: Exceeded timeout of 60 seconds, with unfulfilled expectations: "Data was written".

mockFileManager.verifyFunctionCall(.fileExists(path: responsesDirectory(for: mockEndpointRequest).path))
mockFileManager.verifyFunctionCall(.createDirectory(path: responsesDirectory(for: mockEndpointRequest).path))

XCTAssertEqual(mockFileDataWriter.receivedURL, fileUrl(for: mockEndpointRequest))
}

Expand Down Expand Up @@ -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)

Check failure on line 154 in Tests/NetworkingTests/EndpointRequestStorageProcessorTests.swift

View workflow job for this annotation

GitHub Actions / macOS 13, Xcode 15.2 Test Results

Assertion Failure

Asynchronous wait failed: Exceeded timeout of 60 seconds, with unfulfilled expectations: "Data was written".

Check failure on line 154 in Tests/NetworkingTests/EndpointRequestStorageProcessorTests.swift

View workflow job for this annotation

GitHub Actions / iOS 17.2 Test Results

Assertion Failure

Asynchronous wait failed: Exceeded timeout of 60 seconds, with unfulfilled expectations: "Data was written".

let receivedData = try XCTUnwrap(mockFileDataWriter.receivedData)
let model = try JSONDecoder().decode(EndpointRequestStorageModel.self, from: receivedData)
Expand Down Expand Up @@ -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)

Check failure on line 208 in Tests/NetworkingTests/EndpointRequestStorageProcessorTests.swift

View workflow job for this annotation

GitHub Actions / macOS 13, Xcode 15.2 Test Results

Assertion Failure

Asynchronous wait failed: Exceeded timeout of 60 seconds, with unfulfilled expectations: "Data was written".

Check failure on line 208 in Tests/NetworkingTests/EndpointRequestStorageProcessorTests.swift

View workflow job for this annotation

GitHub Actions / iOS 17.2 Test Results

Assertion Failure

Asynchronous wait failed: Exceeded timeout of 60 seconds, with unfulfilled expectations: "Data was written".

let receivedData = try XCTUnwrap(mockFileDataWriter.receivedData)
let model = try JSONDecoder().decode(EndpointRequestStorageModel.self, from: receivedData)
Expand Down Expand Up @@ -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)

Check failure on line 260 in Tests/NetworkingTests/EndpointRequestStorageProcessorTests.swift

View workflow job for this annotation

GitHub Actions / macOS 13, Xcode 15.2 Test Results

Assertion Failure

Asynchronous wait failed: Exceeded timeout of 60 seconds, with unfulfilled expectations: "Data was written".

Check failure on line 260 in Tests/NetworkingTests/EndpointRequestStorageProcessorTests.swift

View workflow job for this annotation

GitHub Actions / iOS 17.2 Test Results

Assertion Failure

Asynchronous wait failed: Exceeded timeout of 60 seconds, with unfulfilled expectations: "Data was written".

let receivedData = try XCTUnwrap(mockFileDataWriter.receivedData)

Expand Down Expand Up @@ -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)

Check failure on line 307 in Tests/NetworkingTests/EndpointRequestStorageProcessorTests.swift

View workflow job for this annotation

GitHub Actions / macOS 13, Xcode 15.2 Test Results

Assertion Failure

Asynchronous wait failed: Exceeded timeout of 60 seconds, with unfulfilled expectations: "Data was written".

Check failure on line 307 in Tests/NetworkingTests/EndpointRequestStorageProcessorTests.swift

View workflow job for this annotation

GitHub Actions / iOS 17.2 Test Results

Assertion Failure

Asynchronous wait failed: Exceeded timeout of 60 seconds, with unfulfilled expectations: "Data was written".

let receivedData = try XCTUnwrap(mockFileDataWriter.receivedData)

Expand Down

0 comments on commit a79c45c

Please sign in to comment.