Skip to content

Commit

Permalink
Fix perf unit tests somehow (#12088)
Browse files Browse the repository at this point in the history
  • Loading branch information
morganchen12 authored Nov 10, 2023
1 parent 08733c4 commit 51e20fd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions FirebasePerformance/Tests/Unit/FPRObjectInstrumentorTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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 {
Expand Down

0 comments on commit 51e20fd

Please sign in to comment.