aboutsummaryrefslogtreecommitdiffhomepage
path: root/Example/Auth/Tests/FIRPhoneAuthProviderTests.m
diff options
context:
space:
mode:
authorGravatar Morgan Chen <morganchen12@gmail.com>2018-06-21 12:10:05 -0700
committerGravatar Morgan Chen <morganchen12@gmail.com>2018-06-26 15:47:26 -0700
commit21116161f92eda06389daaef670aa593aa588bcd (patch)
tree92facb87e3c6dff09c952ea60e0042351b898e5c /Example/Auth/Tests/FIRPhoneAuthProviderTests.m
parent39176ba0f444e8e99af869126dff9811c743ca40 (diff)
Fix bad parsing of JWT dates
Diffstat (limited to 'Example/Auth/Tests/FIRPhoneAuthProviderTests.m')
-rw-r--r--Example/Auth/Tests/FIRPhoneAuthProviderTests.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Example/Auth/Tests/FIRPhoneAuthProviderTests.m b/Example/Auth/Tests/FIRPhoneAuthProviderTests.m
index 1bb42b1..6c925a5 100644
--- a/Example/Auth/Tests/FIRPhoneAuthProviderTests.m
+++ b/Example/Auth/Tests/FIRPhoneAuthProviderTests.m
@@ -453,7 +453,8 @@ static const NSTimeInterval kExpectationTimeout = 2;
// Assert that the app credential is nil when in test mode.
XCTAssertNil(request.appCredential);
dispatch_async(FIRAuthGlobalWorkQueue(), ^() {
- callback(nil, [FIRAuthErrorUtils networkErrorWithUnderlyingError:[NSError new]]);
+ NSError *underlying = [NSError errorWithDomain:@"Test Error" code:1 userInfo:nil];
+ callback(nil, [FIRAuthErrorUtils networkErrorWithUnderlyingError:underlying]);
});
});