diff --git a/AsyncDisplayKitTests/ASCollectionViewTests.mm b/AsyncDisplayKitTests/ASCollectionViewTests.mm index 60ae5961d1..a906eec068 100644 --- a/AsyncDisplayKitTests/ASCollectionViewTests.mm +++ b/AsyncDisplayKitTests/ASCollectionViewTests.mm @@ -988,7 +988,7 @@ - (void)_primitiveBatchFetchingFillTestAnimated:(BOOL)animated visible:(BOOL)vis } XCTAssertGreaterThan(batchFetchCount, 2); XCTAssertGreaterThanOrEqual(contentHeight, requiredContentHeight, @"Loaded too little content."); - XCTAssertLessThanOrEqual(contentHeight, requiredContentHeight + 2 * itemHeight, @"Loaded too much content."); + XCTAssertLessThanOrEqual(contentHeight, requiredContentHeight + 3 * itemHeight, @"Loaded too much content."); } - (void)testInitialRangeBounds diff --git a/AsyncDisplayKitTests/ASNetworkImageNodeTests.m b/AsyncDisplayKitTests/ASNetworkImageNodeTests.m index 18896487b1..25e37473fc 100644 --- a/AsyncDisplayKitTests/ASNetworkImageNodeTests.m +++ b/AsyncDisplayKitTests/ASNetworkImageNodeTests.m @@ -34,7 +34,8 @@ - (void)setUp node = [[ASNetworkImageNode alloc] initWithCache:cache downloader:downloader]; } -- (void)testThatProgressBlockIsSetAndClearedCorrectlyOnVisibility +/// Test is flaky: https://github.com/facebook/AsyncDisplayKit/issues/2898 +- (void)DISABLED_testThatProgressBlockIsSetAndClearedCorrectlyOnVisibility { node.URL = [NSURL URLWithString:@"http://imageA"];