Skip to content

Commit c3d36ac

Browse files
committed
Adds more debugging output
1 parent 4ab528a commit c3d36ac

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Tests/ApolloPaginationTests/BidirectionalPaginationTests.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@ final class BidirectionalPaginationTests: XCTestCase, CacheDependentTesting {
126126

127127
try XCTAssertSuccessResult(result) { output in
128128
// 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+
}
129138
XCTAssertEqual(try? results.first?.get().initialPage, try? results.last?.get().initialPage)
130139

131140
XCTAssertFalse(output.nextPages.isEmpty)

0 commit comments

Comments
 (0)