From 51e20fd8212684d919776f0311e9b276eb2771eb Mon Sep 17 00:00:00 2001 From: Morgan Chen Date: Fri, 10 Nov 2023 10:01:14 -0800 Subject: [PATCH] Fix perf unit tests somehow (#12088) --- FirebasePerformance/Tests/Unit/FPRObjectInstrumentorTest.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/FirebasePerformance/Tests/Unit/FPRObjectInstrumentorTest.m b/FirebasePerformance/Tests/Unit/FPRObjectInstrumentorTest.m index 6b6dd23ced3..9ef5db9267a 100644 --- a/FirebasePerformance/Tests/Unit/FPRObjectInstrumentorTest.m +++ b/FirebasePerformance/Tests/Unit/FPRObjectInstrumentorTest.m @@ -35,8 +35,6 @@ - (void)testInitWithObject { XCTAssertFalse(instrumentor.hasModifications); } -#ifdef TODO -// On Xcode 15, this test fails /** Tests copying a selector that's not present on the target object. */ - (void)testCopySelectorFromClassThatModifies { NSObject *object = [[NSObject alloc] init]; @@ -50,11 +48,10 @@ - (void)testCopySelectorFromClassThatModifies { XCTAssertTrue([[object class] isSubclassOfClass:[NSObject class]]); instrumentor = nil; XCTAssertNil(weakInstrumentor); + XCTAssertNotNil([(GULSwizzledObject *)object gul_objectSwizzler]); XCTAssertNoThrow([(GULSwizzledObject *)object gul_class]); XCTAssertEqual([object class], [(GULSwizzledObject *)object gul_class]); - XCTAssertNotNil([(GULSwizzledObject *)object gul_objectSwizzler]); } -#endif /** Tests copying a selector that already exists on the object doesn't work. */ - (void)testCopySelectorFromClassThatDoesNotModify {