From f3d2588b94be03ea681b80c35e5bc6be0f8da262 Mon Sep 17 00:00:00 2001 From: Ryan Wilson Date: Fri, 18 Aug 2017 22:22:02 -0400 Subject: 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. --- Example/Database/Tests/Integration/FIRDatabaseTests.m | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'Example/Database') 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"]; -- cgit v1.2.3