Skip to content

[v2] ApolloClientProtocol and Test Deprecation Cleanup #698

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ jobs:
name: ${{ matrix.name }}-results
path: |
TestResults/ResultBundle.zip

run-codegen-test-configurations:
runs-on: macos-15
timeout-minutes: 20
Expand Down Expand Up @@ -248,4 +247,3 @@ jobs:
- name: Run CocoaPods Integration Tests
id: run-cocoapods-integration-tests
uses: ./.github/actions/run-cocoapods-integration-tests

4 changes: 3 additions & 1 deletion Tests/ApolloInternalTestHelpers/MockNetworkTransport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ public final class MockNetworkTransport: NetworkTransport {
public let mockServer: MockGraphQLServer
public let requestChainTransport: RequestChainNetworkTransport

public var url: URL { requestChainTransport.endpointURL }

public init(
mockServer: MockGraphQLServer = MockGraphQLServer(),
store: ApolloStore
Expand Down Expand Up @@ -87,7 +89,7 @@ public final class MockNetworkTransport: NetworkTransport {
}

let httpResponse = HTTPURLResponse(
url: TestURL.mockServer.url,
url: request.url!,
statusCode: 200,
httpVersion: nil,
headerFields: nil
Expand Down
11 changes: 0 additions & 11 deletions Tests/ApolloTests/ApolloStore+ReaderWriterTests.swift

This file was deleted.

1 change: 1 addition & 0 deletions Tests/ApolloTests/ApolloStore_BatchedLoadTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ class ApolloStore_BatchedLoadTests: XCTestCase {
XCTAssertEqual(data.hero?.name, "R2-D2")
XCTAssertEqual(data.hero?.friends?.count, 100)

// 3 loads: ROOT_QUERY.hero, hero.friends, list of friends
XCTAssertEqual(cache.numberOfBatchLoads, 3)
}

Expand Down
1 change: 0 additions & 1 deletion Tests/ApolloTests/AutomaticPersistedQueriesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ class AutomaticPersistedQueriesTests: XCTestCase, MockResponseProvider {
expectation.to(equal("{\"episode\":\"\(episode.rawValue)\"}"))

case .none:
#warning("TODO: write test to test this case actually happens")
expectation.to(equal("{}"))

case .null:
Expand Down
Loading
Loading