summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2020-06-05 11:38:58 -0400
committerNicoleYarroch <nicole@livio.io>2020-06-05 11:38:58 -0400
commit1b62cfa3d24ac841725855b790c7ad4d69a2e279 (patch)
tree307195ffc6b3788389c34a767ed2b81cb3bad5af
parent54b9ab0993956c068722140f295f22841f7e96a9 (diff)
downloadsdl_ios-1b62cfa3d24ac841725855b790c7ad4d69a2e279.tar.gz
Removed thread sleeping
Signed-off-by: NicoleYarroch <nicole@livio.io>
-rw-r--r--SmartDeviceLinkTests/DevAPISpecs/SDLStreamingAudioLifecycleManagerSpec.m29
1 files changed, 13 insertions, 16 deletions
diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingAudioLifecycleManagerSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingAudioLifecycleManagerSpec.m
index 3860a2ed2..96ea3897d 100644
--- a/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingAudioLifecycleManagerSpec.m
+++ b/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingAudioLifecycleManagerSpec.m
@@ -46,8 +46,6 @@ describe(@"the streaming audio manager", ^{
hmiStatus.hmiLevel = hmiLevel;
SDLRPCNotificationNotification *notification = [[SDLRPCNotificationNotification alloc] initWithName:SDLDidChangeHMIStatusNotification object:self rpcNotification:hmiStatus];
[[NSNotificationCenter defaultCenter] postNotification:notification];
-
- [NSThread sleepForTimeInterval:0.3];
};
beforeEach(^{
@@ -113,11 +111,10 @@ describe(@"the streaming audio manager", ^{
SDLRPCResponseNotification *notification = [[SDLRPCResponseNotification alloc] initWithName:SDLDidReceiveRegisterAppInterfaceResponse object:self rpcResponse:someRegisterAppInterfaceResponse];
[[NSNotificationCenter defaultCenter] postNotification:notification];
- [NSThread sleepForTimeInterval:0.1];
});
it(@"should should save the connected vehicle make", ^{
- expect(streamingLifecycleManager.connectedVehicleMake).to(equal(testVehicleType.make));
+ expect(streamingLifecycleManager.connectedVehicleMake).toEventually(equal(testVehicleType.make));
});
});
@@ -149,7 +146,7 @@ describe(@"the streaming audio manager", ^{
});
it(@"should close the streams", ^{
- expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamManagerStateShuttingDown));
+ expect(streamingLifecycleManager.currentAudioStreamState).toEventually(equal(SDLAudioStreamManagerStateShuttingDown));
});
});
@@ -159,7 +156,7 @@ describe(@"the streaming audio manager", ^{
});
it(@"should close the stream", ^{
- expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamManagerStateShuttingDown));
+ expect(streamingLifecycleManager.currentAudioStreamState).toEventually(equal(SDLAudioStreamManagerStateShuttingDown));
});
});
@@ -169,7 +166,7 @@ describe(@"the streaming audio manager", ^{
});
it(@"should not close the stream", ^{
- expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamManagerStateReady));
+ expect(streamingLifecycleManager.currentAudioStreamState).toEventually(equal(SDLAudioStreamManagerStateReady));
});
});
@@ -179,7 +176,7 @@ describe(@"the streaming audio manager", ^{
});
it(@"should not close the stream", ^{
- expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamManagerStateReady));
+ expect(streamingLifecycleManager.currentAudioStreamState).toEventually(equal(SDLAudioStreamManagerStateReady));
});
});
});
@@ -208,7 +205,7 @@ describe(@"the streaming audio manager", ^{
});
it(@"should close the streams", ^{
- expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamManagerStateShuttingDown));
+ expect(streamingLifecycleManager.currentAudioStreamState).toEventually(equal(SDLAudioStreamManagerStateShuttingDown));
});
});
@@ -218,7 +215,7 @@ describe(@"the streaming audio manager", ^{
});
it(@"should close the stream", ^{
- expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamManagerStateShuttingDown));
+ expect(streamingLifecycleManager.currentAudioStreamState).toEventually(equal(SDLAudioStreamManagerStateShuttingDown));
});
});
@@ -228,7 +225,7 @@ describe(@"the streaming audio manager", ^{
});
it(@"should not close the stream", ^{
- expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamManagerStateReady));
+ expect(streamingLifecycleManager.currentAudioStreamState).toEventually(equal(SDLAudioStreamManagerStateReady));
});
});
@@ -238,7 +235,7 @@ describe(@"the streaming audio manager", ^{
});
it(@"should not close the stream", ^{
- expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamManagerStateReady));
+ expect(streamingLifecycleManager.currentAudioStreamState).toEventually(equal(SDLAudioStreamManagerStateReady));
});
});
});
@@ -260,7 +257,7 @@ describe(@"the streaming audio manager", ^{
});
it(@"should not start the stream", ^{
- expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamManagerStateStopped));
+ expect(streamingLifecycleManager.currentAudioStreamState).toEventually(equal(SDLAudioStreamManagerStateStopped));
});
});
@@ -270,7 +267,7 @@ describe(@"the streaming audio manager", ^{
});
it(@"should not start the stream", ^{
- expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamManagerStateStopped));
+ expect(streamingLifecycleManager.currentAudioStreamState).toEventually(equal(SDLAudioStreamManagerStateStopped));
});
});
@@ -280,7 +277,7 @@ describe(@"the streaming audio manager", ^{
});
it(@"should start the streams", ^{
- expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamManagerStateStarting));
+ expect(streamingLifecycleManager.currentAudioStreamState).toEventually(equal(SDLAudioStreamManagerStateStarting));
});
});
@@ -290,7 +287,7 @@ describe(@"the streaming audio manager", ^{
});
it(@"should start the streams", ^{
- expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamManagerStateStarting));
+ expect(streamingLifecycleManager.currentAudioStreamState).toEventually(equal(SDLAudioStreamManagerStateStarting));
});
});
});