Skip to content

Commit 81a04bc

Browse files
committed
Remove magic number
1 parent 98ef8c0 commit 81a04bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AsyncDisplayKitTests/ASTableViewTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ - (void)triggerFirstLayoutMeasurementForTableView:(ASTableView *)tableView{
551551
XCTestExpectation *reloadDataExpectation = [self expectationWithDescription:@"reloadData"];
552552
[tableView reloadDataWithCompletion:^{
553553
for (int section = 0; section < NumberOfSections; section++) {
554-
for (int row = 0; row < 20; row++) {
554+
for (int row = 0; row < [tableView numberOfRowsInSection:section]; row++) {
555555
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row inSection:section];
556556
ASTestTextCellNode *node = (ASTestTextCellNode *)[tableView nodeForRowAtIndexPath:indexPath];
557557
XCTAssertEqual(node.numberOfLayoutsOnMainThread, 0);

0 commit comments

Comments
 (0)