File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
FirebaseMessaging/Tests/UnitTests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ - (void)testAPNSTokenIncludedInOptionsIfAvailableDuringTokenFetch {
233
233
[self expectationWithDescription: @" Included APNS Token data in options dict." ];
234
234
// Inspect the 'options' dictionary to tell whether our expectation was fulfilled
235
235
[[[self .mockInstanceID stub ] andDo: ^(NSInvocation *invocation) {
236
- NSDictionary *options;
236
+ __unsafe_unretained NSDictionary *options;
237
237
[invocation getArgument: &options atIndex: 4 ];
238
238
if (options[@" apns_token" ] != nil ) {
239
239
[expectation fulfill ];
@@ -252,7 +252,7 @@ - (void)testAPNSTokenNotIncludedIfUnavailableDuringTokenFetch {
252
252
[self expectationWithDescription: @" Included APNS Token data not included in options dict." ];
253
253
// Inspect the 'options' dictionary to tell whether our expectation was fulfilled
254
254
[[[self .mockInstanceID stub ] andDo: ^(NSInvocation *invocation) {
255
- NSDictionary *options;
255
+ __unsafe_unretained NSDictionary *options;
256
256
[invocation getArgument: &options atIndex: 4 ];
257
257
if (options[@" apns_token" ] == nil ) {
258
258
[expectation fulfill ];
You can’t perform that action at this time.
0 commit comments