mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Fix installer tests
This commit is contained in:
1 parent
e2da47b7c7
commit
322ee026ea
1 file changed
+6
-13
+6
-13
@@ -62,22 +62,15 @@
|
||||
return;
|
||||
}
|
||||
|
||||
NSError *firstStageError = nil;
|
||||
if (![installer performFirstStage:&firstStageError]) {
|
||||
XCTFail(@"First Stage failed with error: %@", firstStageError);
|
||||
NSError *initialInstallError = nil;
|
||||
if (![installer performInitialInstallation:&initialInstallError]) {
|
||||
XCTFail(@"Initial Installation failed with error: %@", initialInstallError);
|
||||
return;
|
||||
}
|
||||
|
||||
NSError *secondStageError = nil;
|
||||
if (![installer performSecondStageAllowingUI:YES error:&secondStageError]) {
|
||||
NSLog(@"Underlying error: %@", [secondStageError.userInfo objectForKey:NSUnderlyingErrorKey]);
|
||||
XCTFail(@"Second Stage failed with error: %@", secondStageError);
|
||||
return;
|
||||
}
|
||||
|
||||
NSError *thirdStageError = nil;
|
||||
if (![installer performThirdStage:&thirdStageError]) {
|
||||
XCTFail(@"Third Stage failed with error: %@", thirdStageError);
|
||||
NSError *finalInstallError = nil;
|
||||
if (![installer performFinalInstallation:&finalInstallError]) {
|
||||
XCTFail(@"Final installation failed with error: %@", finalInstallError);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user