@@ -57,9 +57,7 @@ it(@"should wait until one instance terminates", ^{
|
||||
it(@"should wait until multiple instances terminate", ^{
|
||||
[NSThread sleepForTimeInterval:5];
|
||||
NSRunningApplication *app1 = [self launchTestApplicationWithEnvironment:nil];
|
||||
[NSThread sleepForTimeInterval:5];
|
||||
NSRunningApplication *app2 = [self launchTestApplicationWithEnvironment:nil];
|
||||
[NSThread sleepForTimeInterval:5];
|
||||
|
||||
__block BOOL completed = NO;
|
||||
[[listener waitForTermination] subscribeCompleted:^{
|
||||
|
||||
@@ -108,8 +108,6 @@ describe(@"updating", ^{
|
||||
|
||||
writeUpdate(update);
|
||||
|
||||
[NSThread sleepForTimeInterval:5];
|
||||
|
||||
NSRunningApplication *app = launchWithEnvironment(nil);
|
||||
|
||||
// Now that Test Application is launched, it's going to keep checking the
|
||||
@@ -118,7 +116,7 @@ describe(@"updating", ^{
|
||||
//
|
||||
// This exercises ShipIt's ability to discard previous commands and
|
||||
// install an even newer update.
|
||||
[NSThread sleepForTimeInterval:3];
|
||||
[NSThread sleepForTimeInterval:0.3];
|
||||
|
||||
update = [SQRLTestUpdate modelWithDictionary:@{
|
||||
@"updateURL": zipUpdate(updateURL),
|
||||
@@ -250,12 +248,8 @@ describe(@"state", ^{
|
||||
[states addObject:state];
|
||||
}];
|
||||
|
||||
[NSThread sleepForTimeInterval:5];
|
||||
|
||||
NSRunningApplication *testApplication = launchWithEnvironment(nil);
|
||||
|
||||
[NSThread sleepForTimeInterval:5];
|
||||
|
||||
NSArray *expectedStates = @[
|
||||
@(SQRLUpdaterStateIdle),
|
||||
@(SQRLUpdaterStateCheckingForUpdate),
|
||||
|
||||
Reference in New Issue
Block a user