aboutsummaryrefslogtreecommitdiffhomepage
path: root/Example/Auth/Tests/FIRPhoneAuthProviderTests.m
diff options
context:
space:
mode:
authorGravatar Morgan Chen <morganchen12@gmail.com>2018-06-28 12:02:16 -0700
committerGravatar GitHub <noreply@github.com>2018-06-28 12:02:16 -0700
commit7aa852fb234f8cc3ece5aa5cff5a53518249f3f0 (patch)
treecb8b47dba0801092cab5ba6cc4edb324374cb46d /Example/Auth/Tests/FIRPhoneAuthProviderTests.m
parentbb9fd3136b189456606c8ece7ee1f2e9b1590e55 (diff)
parent21116161f92eda06389daaef670aa593aa588bcd (diff)
Merge pull request #1436 from morganchen12/auth2
Add informative error to JWT parse failures
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]);
});
});