Skip to content
Merged
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
7 changes: 6 additions & 1 deletion UnitTests/GTLRServiceTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,12 @@ - (void)testService_SingleQuery_Paging {
service.fetcherService.testBlock = ^(GTMSessionFetcher *fetcherToTest,
GTMSessionFetcherTestResponse testResponse) {
checkRequestParamsAndHeaders(fetcherToTest.request);
XCTAssertEqual(queryTicket.pagesFetchedCounter, (NSUInteger)pageCounter);
// There's a chance the test block will get calls at the same time as the query is being
// started, so there could a a race for access to `queryTicket`, so skip inspecing it
// for the first page.
if (pageCounter != 0) {
XCTAssertEqual(queryTicket.pagesFetchedCounter, (NSUInteger)pageCounter);
}

++pageCounter;

Expand Down