Skip to content

Commit

Permalink
Delete flakey test that only tests built-in iOS SDK behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Federman committed Sep 22, 2016
1 parent d4a3b22 commit 2f7829d
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions AardvarkTests/ARKDataArchiveTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -98,25 +98,6 @@ - (void)test_setUp_providesEmptyArchive;
[self waitForExpectationsWithTimeout:5.0 handler:nil];
}

- (void)test_dealloc_closesFile;
{
int fileDescriptor = -1;

@autoreleasepool {
// Create and destroy and instance within an autorelease pool to ensure ARC cleans it up.
NSURL *tempArchiveURL = [NSURL ARK_fileURLWithApplicationSupportFilename:@"testfile.data"];
ARKDataArchive *tempArchive = [[ARKDataArchive alloc] initWithURL:tempArchiveURL maximumObjectCount:10 trimmedObjectCount:5];

fileDescriptor = tempArchive.fileHandle.fileDescriptor;
XCTAssertGreaterThanOrEqual(fileDescriptor, 0, @"Didn't get file descriptor!");

[tempArchive saveArchiveAndWait:YES];
tempArchive = nil;
}

XCTAssertEqual(fcntl(fileDescriptor, F_GETFD), -1, @"File descriptor should be closed after deallocating data archive!");
}

- (void)test_initWithURL_preservesExistingData;
{
NSURL *fileURL = self.dataArchive.archiveFileURL;
Expand Down

0 comments on commit 2f7829d

Please sign in to comment.