Revert "Smore random sleeps"

This reverts commit 2dea99045d.
This commit is contained in:
joshaber
2015-10-26 17:17:55 -04:00
parent f7438e91b3
commit ce1b59c1cf
2 changed files with 1 additions and 9 deletions
@@ -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:^{
+1 -7
View File
@@ -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),