diff options
author | Ryan Wilson <wilsonryan@google.com> | 2017-08-18 22:22:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-18 22:22:02 -0400 |
commit | f3d2588b94be03ea681b80c35e5bc6be0f8da262 (patch) | |
tree | cda6b724a358ff9209a0955bd41734ef835585a4 /Example/Database | |
parent | 76ac74b91560f3d56a02ffaab894c93c6d97f002 (diff) |
Fix failing Database integration tests. (#206)
Deleting the defaultApp causes issues between the other tests. Remove
the portion of the test deleting the defaultApp will alleviate the
issue.
Diffstat (limited to 'Example/Database')
-rw-r--r-- | Example/Database/Tests/Integration/FIRDatabaseTests.m | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Example/Database/Tests/Integration/FIRDatabaseTests.m b/Example/Database/Tests/Integration/FIRDatabaseTests.m index 4bdb773..0e1c57c 100644 --- a/Example/Database/Tests/Integration/FIRDatabaseTests.m +++ b/Example/Database/Tests/Integration/FIRDatabaseTests.m @@ -54,24 +54,6 @@ static const NSInteger kFErrorCodeWriteCanceled = 3; } - (void) testDeleteDatabase { - FIRDatabase *defaultDatabase = [FIRDatabase database]; - FIRApp *defaultApp = [FIRApp defaultApp]; - XCTAssertEqualObjects(defaultDatabase.app, defaultApp); - - // Set up expectation for the default app to be deleted. - XCTestExpectation *defaultAppDeletedExpectation = - [self expectationWithDescription:@"Deleting the default app should invalidate the default " - @"database."]; - [defaultApp deleteApp:^(BOOL success) { - // Deleting the default app should make the default database unavailable. - XCTAssertThrows([FIRDatabase database]); - - [defaultAppDeletedExpectation fulfill]; - }]; - - // Wait for the default app to be deleted. - [self waitForExpectations:@[defaultAppDeletedExpectation] timeout:2]; - // Set up a custom FIRApp with a custom database based on it. FIROptions *options = [[FIROptions alloc] initWithGoogleAppID:@"1:123:ios:123abc" GCMSenderID:@"gcm_sender_id"]; |