diff options
author | NicoleYarroch <nicole@livio.io> | 2020-07-22 10:01:46 -0400 |
---|---|---|
committer | NicoleYarroch <nicole@livio.io> | 2020-07-22 10:01:46 -0400 |
commit | 00ce63e58015d5b926910e119bf25baba9eb399b (patch) | |
tree | 24d8c77faf4976211543420ea765d62f428fad28 | |
parent | 0e087a51a8687a563c0f6f2b5acd8d353da7b628 (diff) | |
download | sdl_ios-00ce63e58015d5b926910e119bf25baba9eb399b.tar.gz |
Fixed test case
Signed-off-by: NicoleYarroch <nicole@livio.io>
-rw-r--r-- | SmartDeviceLink/SDLLifecycleProtocolHandler.m | 1 | ||||
-rw-r--r-- | SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleProtocolHandlerSpec.m | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/SmartDeviceLink/SDLLifecycleProtocolHandler.m b/SmartDeviceLink/SDLLifecycleProtocolHandler.m index 2094a113f..49a789637 100644 --- a/SmartDeviceLink/SDLLifecycleProtocolHandler.m +++ b/SmartDeviceLink/SDLLifecycleProtocolHandler.m @@ -89,7 +89,6 @@ NS_ASSUME_NONNULL_BEGIN [self.rpcStartServiceTimeoutTimer start]; } - /// Called when the transport is closed. - (void)protocolDidClose:(SDLProtocol *)protocol { if (self.protocol != protocol) { return; } diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleProtocolHandlerSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleProtocolHandlerSpec.m index 6cd4665ae..681ec9cc5 100644 --- a/SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleProtocolHandlerSpec.m +++ b/SmartDeviceLinkTests/DevAPISpecs/SDLLifecycleProtocolHandlerSpec.m @@ -156,11 +156,11 @@ describe(@"SDLLifecycleProtocolHandler tests", ^{ }); it(@"should send a transport disconnected notification when the timer elapses", ^{ - OCMExpect([mockNotificationDispatcher postNotificationName:[OCMArg isEqual:SDLTransportDidDisconnect] infoObject:[OCMArg isNil]]); + OCMExpect([mockProtocol stopWithCompletionHandler:[OCMArg any]]); [testHandler protocolDidOpen:mockProtocol]; - OCMVerifyAllWithDelay(mockNotificationDispatcher, 11.0); + OCMVerifyAllWithDelay(mockProtocol, 11.0); }); }); |