diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2020-03-09 14:48:24 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2020-03-09 14:48:24 -0400 |
commit | 3807cb5a7f2d748a2686919c1dab14bb16bb2095 (patch) | |
tree | fe073898fadd14a7e3f99b61d3cd23cc9184c6fa | |
parent | 419a81360a17517538ba61c4425f9d1d72850c99 (diff) | |
download | sdl_ios-3807cb5a7f2d748a2686919c1dab14bb16bb2095.tar.gz |
Fix tests crashing
-rw-r--r-- | SmartDeviceLinkTests/DevAPISpecs/SDLFakeViewControllerPresenter.m | 6 | ||||
-rw-r--r-- | SmartDeviceLinkTests/LoggingSpecs/SDLLogFilterSpec.m | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLFakeViewControllerPresenter.m b/SmartDeviceLinkTests/DevAPISpecs/SDLFakeViewControllerPresenter.m index c0ec84bfb..db28e24b8 100644 --- a/SmartDeviceLinkTests/DevAPISpecs/SDLFakeViewControllerPresenter.m +++ b/SmartDeviceLinkTests/DevAPISpecs/SDLFakeViewControllerPresenter.m @@ -27,10 +27,14 @@ return self; } -- (void)stop { +- (void)stopWithCompletionHandler:(nullable SDLLockScreenDidFinishHandler)completionHandler { if (!self.lockViewController) { return; } _shouldShowLockScreen = NO; + + if (completionHandler != nil) { + completionHandler(); + } } - (void)updateLockScreenToShow:(BOOL)show withCompletionHandler:(nullable SDLLockScreenDidFinishHandler)completionHandler { diff --git a/SmartDeviceLinkTests/LoggingSpecs/SDLLogFilterSpec.m b/SmartDeviceLinkTests/LoggingSpecs/SDLLogFilterSpec.m index fe9e0fdfd..3340fd8ec 100644 --- a/SmartDeviceLinkTests/LoggingSpecs/SDLLogFilterSpec.m +++ b/SmartDeviceLinkTests/LoggingSpecs/SDLLogFilterSpec.m @@ -6,7 +6,7 @@ #import "SDLLogModel.h" -QuickSpecBegin(SDLfilterspec) +QuickSpecBegin(SDLFilterSpec) describe(@"a filter by a string", ^{ __block NSString *testFilterString = @"filter string"; |