Increase number of sequential thens in this test

Refs #930
This commit is contained in:
Max Howell 2018-09-28 09:52:30 -04:00
parent 1f3564887e
commit d3dfe22243

View File

@ -189,13 +189,22 @@ static inline AnyPromise *fulfillLater() {
}).then(^{
XCTAssertEqual(x, 1);
x++;
}).then(^{
XCTAssertEqual(x, 2);
x++;
}).then(^{
XCTAssertEqual(x, 3);
x++;
}).then(^{
XCTAssertEqual(x, 4);
x++;
[ex1 fulfill];
});
[self waitForExpectationsWithTimeout:1 handler:nil];
XCTAssertEqual(x, 2);
XCTAssertEqual(x, 5);
}
- (void)test_10_then_returns_resolved_promise {