Skip to content

Commit

Permalink
don’t override deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
rcancro committed Jul 26, 2023
1 parent 130584e commit 3cf3328
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Tests/ASCollectionViewThrashTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ - (void)tearDown
}

// NOTE: Despite the documentation, this is not always called if an exception is caught.
- (void)recordFailureWithDescription:(NSString *)description inFile:(NSString *)filePath atLine:(NSUInteger)lineNumber expected:(BOOL)expected
- (void)recordIssue:(XCTIssue *)issue
{
_failed = YES;
[super recordFailureWithDescription:description inFile:filePath atLine:lineNumber expected:expected];
[super recordIssue:issue];
}

- (void)verifyDataSource:(ASThrashDataSource *)ds
Expand Down
5 changes: 3 additions & 2 deletions Tests/ASTableViewThrashTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ - (void)tearDown
}

// NOTE: Despite the documentation, this is not always called if an exception is caught.
- (void)recordFailureWithDescription:(NSString *)description inFile:(NSString *)filePath atLine:(NSUInteger)lineNumber expected:(BOOL)expected
// NOTE: Despite the documentation, this is not always called if an exception is caught.
- (void)recordIssue:(XCTIssue *)issue
{
_failed = YES;
[super recordFailureWithDescription:description inFile:filePath atLine:lineNumber expected:expected];
[super recordIssue:issue];
}

#pragma mark Test Methods
Expand Down

0 comments on commit 3cf3328

Please sign in to comment.