diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2022-01-04 13:43:57 -0500 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2022-01-04 13:43:57 -0500 |
commit | 0b534d87b2fdd5ccea002e9cdd8c7e0b0ba40a0e (patch) | |
tree | dd897be91024e9e89dca24f3f546ffa539ae6d60 | |
parent | 69cab131ad6d9ae232f05d451743d2f444b8eb6d (diff) | |
download | sdl_ios-bugfix/issue-2063-lockscreen-race-conditions.tar.gz |
Fix broken testsbugfix/issue-2063-lockscreen-race-conditions
-rw-r--r-- | SmartDeviceLinkTests/ProxySpecs/SDLLockScreenStatusManagerSpec.m | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/SmartDeviceLinkTests/ProxySpecs/SDLLockScreenStatusManagerSpec.m b/SmartDeviceLinkTests/ProxySpecs/SDLLockScreenStatusManagerSpec.m index 7bca387e4..ee650ae96 100644 --- a/SmartDeviceLinkTests/ProxySpecs/SDLLockScreenStatusManagerSpec.m +++ b/SmartDeviceLinkTests/ProxySpecs/SDLLockScreenStatusManagerSpec.m @@ -270,8 +270,7 @@ describe(@"the lockscreen status manager", ^{ }]]); SDLOnHMIStatus *hmiStatus = [[SDLOnHMIStatus alloc] initWithHMILevel:SDLHMILevelFull systemContext:SDLSystemContextMain audioStreamingState:SDLAudioStreamingStateAudible videoStreamingState:nil windowID:nil]; - SDLRPCNotificationNotification *hmiStatusNotification = [[SDLRPCNotificationNotification alloc] initWithName:SDLDidChangeHMIStatusNotification object:mockDispatcher rpcNotification:hmiStatus]; - [[NSNotificationCenter defaultCenter] postNotification:hmiStatusNotification]; + [testManager updateHMIStatus:hmiStatus]; }); it(@"should update the driver distraction status and send a notification", ^{ @@ -290,8 +289,7 @@ describe(@"the lockscreen status manager", ^{ SDLOnDriverDistraction *driverDistraction = [[SDLOnDriverDistraction alloc] init]; driverDistraction.state = SDLDriverDistractionStateOn; - SDLRPCNotificationNotification *driverDistractionStateNotification = [[SDLRPCNotificationNotification alloc] initWithName:SDLDidChangeDriverDistractionStateNotification object:mockDispatcher rpcNotification:driverDistraction]; - [[NSNotificationCenter defaultCenter] postNotification:driverDistractionStateNotification]; + [testManager updateDriverDistractionState:driverDistraction]; }); it(@"should update the driver distraction status and send a notification", ^{ |