1 parent 98ef8c0 commit 81a04bcCopy full SHA for 81a04bc
1 file changed
AsyncDisplayKitTests/ASTableViewTests.m
@@ -551,7 +551,7 @@ - (void)triggerFirstLayoutMeasurementForTableView:(ASTableView *)tableView{
551
XCTestExpectation *reloadDataExpectation = [self expectationWithDescription:@"reloadData"];
552
[tableView reloadDataWithCompletion:^{
553
for (int section = 0; section < NumberOfSections; section++) {
554
- for (int row = 0; row < 20; row++) {
+ for (int row = 0; row < [tableView numberOfRowsInSection:section]; row++) {
555
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row inSection:section];
556
ASTestTextCellNode *node = (ASTestTextCellNode *)[tableView nodeForRowAtIndexPath:indexPath];
557
XCTAssertEqual(node.numberOfLayoutsOnMainThread, 0);
0 commit comments