diff --git a/ObjectiveGitTests/QuickSpec+GTFixtures.m b/ObjectiveGitTests/QuickSpec+GTFixtures.m index a54270a39..557273a3e 100644 --- a/ObjectiveGitTests/QuickSpec+GTFixtures.m +++ b/ObjectiveGitTests/QuickSpec+GTFixtures.m @@ -94,6 +94,10 @@ - (void)setUpRepositoryFixtureIfNeeded:(NSString *)repositoryName { error = nil; success = [self unzipFromArchiveAtPath:zippedRepositoriesPath intoDirectory:cleanRepositoryPath error:&error]; XCTAssertTrue(success, @"Couldn't unzip fixture \"%@\" from %@ to %@: %@", repositoryName, zippedRepositoriesPath, cleanRepositoryPath, error); + if (!success) { + [NSFileManager.defaultManager removeItemAtPath:cleanRepositoryPath error:NULL]; + return; + } } success = [[NSFileManager defaultManager] copyItemAtPath:[cleanRepositoryPath stringByAppendingPathComponent:repositoryName] toPath:path error:&error]; diff --git a/ObjectiveGitTests/fixtures/fixtures.zip b/ObjectiveGitTests/fixtures/fixtures.zip index 9cc434a23..e3f04e735 100644 Binary files a/ObjectiveGitTests/fixtures/fixtures.zip and b/ObjectiveGitTests/fixtures/fixtures.zip differ