Skip to content

Commit f3d2588

Browse files
authored
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.
1 parent 76ac74b commit f3d2588

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Example/Database/Tests/Integration/FIRDatabaseTests.m

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,6 @@ - (void) testDatabaseForAppWithInvalidURLs {
5454
}
5555

5656
- (void) testDeleteDatabase {
57-
FIRDatabase *defaultDatabase = [FIRDatabase database];
58-
FIRApp *defaultApp = [FIRApp defaultApp];
59-
XCTAssertEqualObjects(defaultDatabase.app, defaultApp);
60-
61-
// Set up expectation for the default app to be deleted.
62-
XCTestExpectation *defaultAppDeletedExpectation =
63-
[self expectationWithDescription:@"Deleting the default app should invalidate the default "
64-
@"database."];
65-
[defaultApp deleteApp:^(BOOL success) {
66-
// Deleting the default app should make the default database unavailable.
67-
XCTAssertThrows([FIRDatabase database]);
68-
69-
[defaultAppDeletedExpectation fulfill];
70-
}];
71-
72-
// Wait for the default app to be deleted.
73-
[self waitForExpectations:@[defaultAppDeletedExpectation] timeout:2];
74-
7557
// Set up a custom FIRApp with a custom database based on it.
7658
FIROptions *options = [[FIROptions alloc] initWithGoogleAppID:@"1:123:ios:123abc"
7759
GCMSenderID:@"gcm_sender_id"];

0 commit comments

Comments
 (0)