summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2021-04-07 09:51:50 -0400
committerNicoleYarroch <nicole@livio.io>2021-04-07 09:51:50 -0400
commite34c41f1a797b1a73af0a89dcc222ab4a6189956 (patch)
tree5d0c18d106082f274f13e11be156b860aca3b414
parenta5ee8b08de52722e65c86e171971d39f060b3333 (diff)
downloadsdl_ios-bugfix/issue_1954_queued_menu_updates_fail.tar.gz
Cleaned up queued updates on stopbugfix/issue_1954_queued_menu_updates_fail
Signed-off-by: NicoleYarroch <nicole@livio.io>
-rw-r--r--SmartDeviceLink/private/SDLMenuManager.m2
-rw-r--r--SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m4
2 files changed, 6 insertions, 0 deletions
diff --git a/SmartDeviceLink/private/SDLMenuManager.m b/SmartDeviceLink/private/SDLMenuManager.m
index 974215502..455674f94 100644
--- a/SmartDeviceLink/private/SDLMenuManager.m
+++ b/SmartDeviceLink/private/SDLMenuManager.m
@@ -123,6 +123,8 @@ UInt32 const MenuCellIdMin = 1;
_hasQueuedUpdate = NO;
_waitingOnHMIUpdate = NO;
_waitingUpdateMenuCells = @[];
+ _queuedAddMenuCells = @[];
+ _queuedDeleteMenuCells = @[];
}
#pragma mark - Setters
diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m
index 797201b89..eb638b0e1 100644
--- a/SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m
+++ b/SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m
@@ -115,6 +115,8 @@ describe(@"menu manager", ^{
expect(testManager.oldMenuCells).to(beEmpty());
expect(testManager.waitingUpdateMenuCells).to(beNil());
expect(testManager.menuConfiguration).toNot(beNil());
+ expect(testManager.queuedAddMenuCells).to(beNil());
+ expect(testManager.queuedDeleteMenuCells).to(beNil());
});
describe(@"updating menu cells before HMI is ready", ^{
@@ -855,6 +857,8 @@ describe(@"menu manager", ^{
expect(testManager.oldMenuCells).to(beEmpty());
expect(testManager.waitingUpdateMenuCells).to(beEmpty());
expect(testManager.menuConfiguration).toNot(beNil());
+ expect(testManager.queuedAddMenuCells).to(beEmpty());
+ expect(testManager.queuedDeleteMenuCells).to(beEmpty());
});
});