We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ab528a commit c3d36acCopy full SHA for c3d36ac
Tests/ApolloPaginationTests/BidirectionalPaginationTests.swift
@@ -126,6 +126,15 @@ final class BidirectionalPaginationTests: XCTestCase, CacheDependentTesting {
126
127
try XCTAssertSuccessResult(result) { output in
128
// Assert first page is unchanged
129
+ if
130
+ let oldResults = try? results.first?.get().initialPage,
131
+ let newResults = try? results.last?.get().initialPage,
132
+ oldResults != newResults
133
+ {
134
+ print("test_fetchMultiplePages_async - debugging output")
135
+ print("Old: \(oldResults.asJSONDictionary())")
136
+ print("New: \(newResults.asJSONDictionary())")
137
+ }
138
XCTAssertEqual(try? results.first?.get().initialPage, try? results.last?.get().initialPage)
139
140
XCTAssertFalse(output.nextPages.isEmpty)
0 commit comments