From 3cf33283f191162b375b79e6f71552a632417c15 Mon Sep 17 00:00:00 2001 From: rcancro Date: Tue, 25 Jul 2023 20:57:37 -0700 Subject: [PATCH] =?UTF-8?q?don=E2=80=99t=20override=20deprecated=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tests/ASCollectionViewThrashTests.mm | 4 ++-- Tests/ASTableViewThrashTests.mm | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Tests/ASCollectionViewThrashTests.mm b/Tests/ASCollectionViewThrashTests.mm index b609cb2ba..a41b5b692 100644 --- a/Tests/ASCollectionViewThrashTests.mm +++ b/Tests/ASCollectionViewThrashTests.mm @@ -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 diff --git a/Tests/ASTableViewThrashTests.mm b/Tests/ASTableViewThrashTests.mm index 695bf67ff..4de448469 100644 --- a/Tests/ASTableViewThrashTests.mm +++ b/Tests/ASTableViewThrashTests.mm @@ -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