From c4485dfa32314e0fdb03c3ce77242591dae6ed0e Mon Sep 17 00:00:00 2001 From: Peter Andrews Date: Wed, 1 Jun 2022 11:37:07 -0700 Subject: [PATCH] Temporarily disable testKeyWindow for Xcode 12. --- GoogleSignIn/Tests/Unit/GIDEMMErrorHandlerTest.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GoogleSignIn/Tests/Unit/GIDEMMErrorHandlerTest.m b/GoogleSignIn/Tests/Unit/GIDEMMErrorHandlerTest.m index b102b5c6..57b81702 100644 --- a/GoogleSignIn/Tests/Unit/GIDEMMErrorHandlerTest.m +++ b/GoogleSignIn/Tests/Unit/GIDEMMErrorHandlerTest.m @@ -476,6 +476,9 @@ - (void)testSequentialErrors { [self testScreenlockRequiredCancel]; } +// Temporarily disable testKeyWindow for Xcode 12 and under due to unexplained failure. +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 150000 + // Verifies that the `keyWindow` internal method works on all OS versions as expected. - (void)testKeyWindow { // The original method has been swizzled in `setUp` so get its original implementation to test. @@ -518,6 +521,8 @@ - (void)testKeyWindow { isClassSelector:YES]; } +#endif // __IPHONE_OS_VERSION_MAX_ALLOWED >= 150000 + @end NS_ASSUME_NONNULL_END