diff --git a/src/darwin/Framework/CHIPTests/MTRErrorTests.m b/src/darwin/Framework/CHIPTests/MTRErrorTests.m index 67457cd57021ee..a89467aed5639f 100644 --- a/src/darwin/Framework/CHIPTests/MTRErrorTests.m +++ b/src/darwin/Framework/CHIPTests/MTRErrorTests.m @@ -20,6 +20,8 @@ #import "MTRTestKeys.h" #import "MTRTestStorage.h" +#import + @interface MTRErrorTests : XCTestCase @end @@ -67,7 +69,7 @@ - (void)testErrorSourcePaths return [error containsString:@".mm:"]; }] anyObject]; NSString * frameworkSource = [self sourceFileFromErrorString:frameworkError]; - XCTAssertTrue([frameworkSource scriptingEndsWith:@".mm"]); + XCTAssertTrue([frameworkSource hasSuffix:@".mm"]); XCTAssertFalse([frameworkSource containsString:@"/"], @"frameworkSource: %@", frameworkSource); }