diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2020-02-21 13:17:23 -0500 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2020-02-21 13:17:23 -0500 |
commit | fabb23afa08c0227f922e95e548b6713d3ff3c57 (patch) | |
tree | 346d718b6ee330732131b6644072ab87586fb6b2 | |
parent | 81d79915b12d1fda246a739608c59c218d95d5dc (diff) | |
download | sdl_ios-fabb23afa08c0227f922e95e548b6713d3ff3c57.tar.gz |
Direct access needs to check "eventually"bugfix/issue-1515-SIGABRT-crash
-rw-r--r-- | SmartDeviceLinkTests/Notifications/SDLResponseDispatcherSpec.m | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/SmartDeviceLinkTests/Notifications/SDLResponseDispatcherSpec.m b/SmartDeviceLinkTests/Notifications/SDLResponseDispatcherSpec.m index 0eb289928..abf70ac38 100644 --- a/SmartDeviceLinkTests/Notifications/SDLResponseDispatcherSpec.m +++ b/SmartDeviceLinkTests/Notifications/SDLResponseDispatcherSpec.m @@ -90,11 +90,11 @@ describe(@"a response dispatcher", ^{ }); it(@"should store the request and response", ^{ - expect(testDispatcher.rpcRequestDictionary[testCorrelationId]).toNot(beNil()); - expect(testDispatcher.rpcRequestDictionary).to(haveCount(@1)); + expect(testDispatcher.rpcRequestDictionary[testCorrelationId]).toEventuallyNot(beNil()); + expect(testDispatcher.rpcRequestDictionary).toEventually(haveCount(@1)); - expect(testDispatcher.rpcResponseHandlerMap[testCorrelationId]).toNot(beNil()); - expect(testDispatcher.rpcResponseHandlerMap).to(haveCount(@1)); + expect(testDispatcher.rpcResponseHandlerMap[testCorrelationId]).toEventuallyNot(beNil()); + expect(testDispatcher.rpcResponseHandlerMap).toEventually(haveCount(@1)); }); describe(@"when a response arrives", ^{ @@ -139,8 +139,8 @@ describe(@"a response dispatcher", ^{ }); it(@"should add the soft button to the map", ^{ - expect(testDispatcher.customButtonHandlerMap[testSoftButton1.softButtonID]).toNot(beNil()); - expect(testDispatcher.customButtonHandlerMap).to(haveCount(@1)); + expect(testDispatcher.customButtonHandlerMap[testSoftButton1.softButtonID]).toEventuallyNot(beNil()); + expect(testDispatcher.customButtonHandlerMap).toEventually(haveCount(@1)); }); describe(@"when button press and button event notifications arrive", ^{ @@ -249,8 +249,8 @@ describe(@"a response dispatcher", ^{ it(@"should add the command to the map", ^{ [testDispatcher storeRequest:testAddCommand handler:nil]; - expect(testDispatcher.commandHandlerMap[testAddCommand.cmdID]).toNot(beNil()); - expect(testDispatcher.commandHandlerMap).to(haveCount(@1)); + expect(testDispatcher.commandHandlerMap[testAddCommand.cmdID]).toEventuallyNot(beNil()); + expect(testDispatcher.commandHandlerMap).toEventually(haveCount(@1)); }); it(@"should throw an exception if there's no command id", ^{ @@ -369,8 +369,8 @@ describe(@"a response dispatcher", ^{ it(@"should add the subscription to the map", ^{ [testDispatcher storeRequest:testSubscribeButton handler:nil]; - expect(testDispatcher.buttonHandlerMap[testSubscribeButton.buttonName]).toNot(beNil()); - expect(testDispatcher.buttonHandlerMap).to(haveCount(@1)); + expect(testDispatcher.buttonHandlerMap[testSubscribeButton.buttonName]).toEventuallyNot(beNil()); + expect(testDispatcher.buttonHandlerMap).toEventually(haveCount(@1)); }); it(@"should throw an exception if there's no button name", ^{ @@ -499,8 +499,8 @@ describe(@"a response dispatcher", ^{ }); it(@"should add the soft button to the map", ^{ - expect(testDispatcher.customButtonHandlerMap[testSoftButton1.softButtonID]).toNot(beNil()); - expect(testDispatcher.customButtonHandlerMap).to(haveCount(@1)); + expect(testDispatcher.customButtonHandlerMap[testSoftButton1.softButtonID]).toEventuallyNot(beNil()); + expect(testDispatcher.customButtonHandlerMap).toEventually(haveCount(@1)); }); describe(@"when button press and button event notifications arrive", ^{ @@ -610,8 +610,8 @@ describe(@"a response dispatcher", ^{ }); it(@"should add the soft button to the map", ^{ - expect(testDispatcher.customButtonHandlerMap[testSoftButton1.softButtonID]).toNot(beNil()); - expect(testDispatcher.customButtonHandlerMap).to(haveCount(@1)); + expect(testDispatcher.customButtonHandlerMap[testSoftButton1.softButtonID]).toEventuallyNot(beNil()); + expect(testDispatcher.customButtonHandlerMap).toEventually(haveCount(@1)); }); describe(@"when button press and button event notifications arrive", ^{ |