Skip to content

Commit 453699b

Browse files
[Infra] Fix build warning in performance tests (#15063)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent b2e45d9 commit 453699b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

FirebasePerformance/Tests/Unit/Common/FPRDiagnosticsTest.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ - (void)testFPRAssertSpeed {
8080

8181
/** Tests that FPRAssert actually asserts (when NS_BLOCK_ASSERTIONS=0|undefined). */
8282
- (void)testFPRAssert {
83-
XCTAssertThrows(FPRAssert(NO, @"This is a failed assert!"));
83+
XCTAssertThrows(^{
84+
FPRAssert(NO, @"This is a failed assert!");
85+
}());
8486
}
8587

8688
/** Tests emit diagnostics methods. */

0 commit comments

Comments
 (0)