We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65c52d2 commit 435c703Copy full SHA for 435c703
FirebasePerformance/Tests/Unit/Timer/FIRTraceTest.m
@@ -475,16 +475,17 @@ - (void)testBackgroundStateAfterTraceStop {
475
object:[UIApplication sharedApplication]];
476
[defaultCenter postNotificationName:UIApplicationDidBecomeActiveNotification
477
478
+ [expectation fulfill];
479
});
480
481
[self waitForExpectationsWithTimeout:5.0
482
handler:^(NSError *_Nullable error) {
483
if (error) {
484
XCTFail(@"Expectation failed with error: %@", error);
485
} else {
486
+ [trace stop];
487
XCTAssertEqual(trace.backgroundTraceState,
488
FPRTraceStateBackgroundAndForeground);
- [trace stop];
489
}
490
}];
491
0 commit comments