File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,11 @@ - (void)testCallFunctionWhenAppCheckIsInstalledAndFACTokenSuccess {
161
161
162
162
XCTestExpectation *httpRequestExpectation =
163
163
[self expectationWithDescription: @" HTTPRequestExpectation" ];
164
+ __weak __auto_type weakSelf = self;
164
165
_fetcherService.testBlock = ^(GTMSessionFetcher *_Nonnull fetcherToTest,
165
166
GTMSessionFetcherTestResponse _Nonnull testResponse) {
167
+ // __unused to avoid warning in Xcode 12+ in g3.
168
+ __unused __auto_type self = weakSelf;
166
169
[httpRequestExpectation fulfill ];
167
170
168
171
NSString *appCheckTokenHeader =
@@ -225,9 +228,11 @@ - (void)testCallFunctionWhenAppCheckIsNotInstalled {
225
228
226
229
XCTestExpectation *httpRequestExpectation =
227
230
[self expectationWithDescription: @" HTTPRequestExpectation" ];
228
-
231
+ __weak __auto_type weakSelf = self;
229
232
_fetcherService.testBlock = ^(GTMSessionFetcher *_Nonnull fetcherToTest,
230
233
GTMSessionFetcherTestResponse _Nonnull testResponse) {
234
+ // __unused to avoid warning in Xcode 12+ in g3.
235
+ __unused __auto_type self = weakSelf;
231
236
[httpRequestExpectation fulfill ];
232
237
233
238
NSString *appCheckTokenHeader =
You can’t perform that action at this time.
0 commit comments