Skip to content

Commit

Permalink
Ignore the non-object arguments when stubbing the fetchWithExpiration…
Browse files Browse the repository at this point in the history
…Duration method.
  • Loading branch information
dmandar committed Feb 14, 2020
1 parent 402288c commit 66ec97c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FirebaseRemoteConfig/Tests/Unit/RCNRemoteConfigTest.m
Expand Up @@ -192,7 +192,8 @@ - (void)setUp {
namespace:fullyQualifiedNamespace
options:currentOptions]);

OCMStub([_configFetch[i] fetchConfigWithExpirationDuration:43200 completionHandler:OCMOCK_ANY])
OCMStub([_configFetch[i] fetchConfigWithExpirationDuration:0 completionHandler:OCMOCK_ANY])
.ignoringNonObjectArgs()
.andDo(^(NSInvocation *invocation) {
void (^handler)(FIRRemoteConfigFetchStatus status, NSError *_Nullable error) = nil;
[invocation getArgument:&handler atIndex:3];
Expand Down

0 comments on commit 66ec97c

Please sign in to comment.