From ce1b59c1cf2cedb3d223ec78864fa663359cd669 Mon Sep 17 00:00:00 2001 From: joshaber Date: Mon, 26 Oct 2015 17:17:55 -0400 Subject: [PATCH] Revert "Smore random sleeps" This reverts commit 2dea99045d7f2bdbb08f034fb68f77e6c1711b47. --- SquirrelTests/SQRLTerminationListenerSpec.m | 2 -- SquirrelTests/SQRLUpdaterSpec.m | 8 +------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/SquirrelTests/SQRLTerminationListenerSpec.m b/SquirrelTests/SQRLTerminationListenerSpec.m index 2ab7cb0..f9adfbb 100644 --- a/SquirrelTests/SQRLTerminationListenerSpec.m +++ b/SquirrelTests/SQRLTerminationListenerSpec.m @@ -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:^{ diff --git a/SquirrelTests/SQRLUpdaterSpec.m b/SquirrelTests/SQRLUpdaterSpec.m index 09e24c5..344dcce 100644 --- a/SquirrelTests/SQRLUpdaterSpec.m +++ b/SquirrelTests/SQRLUpdaterSpec.m @@ -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),