X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tst%2Fsyncstorageimpl_test.cpp;h=59704be541a5ef6fd9e888e68ee6c9578e4f86ca;hb=ece67088;hp=7eab41043e189c901187ac73e51281ae765f4dea;hpb=b8cd8b6087862ff04c9e39a0235ebf870c28ce39;p=ric-plt%2Fsdl.git diff --git a/tst/syncstorageimpl_test.cpp b/tst/syncstorageimpl_test.cpp index 7eab410..59704be 100644 --- a/tst/syncstorageimpl_test.cpp +++ b/tst/syncstorageimpl_test.cpp @@ -14,6 +14,11 @@ limitations under the License. */ +/* + * This source code is part of the near-RT RIC (RAN Intelligent Controller) + * platform project (RICP). +*/ + #include #include "private/error.hpp" #include "private/redis/asyncredisstorage.hpp" @@ -557,6 +562,10 @@ TEST_F(SyncStorageImplTest, AllDispatcherErrorCodesThrowCorrectException) expectModifyIfAck(aec, false); EXPECT_THROW(syncStorage->setIfNotExists(ns, "key1", { 0x0a, 0x0b, 0x0c }), BackendError); break; + case AsyncRedisCommandDispatcherErrorCode::WRITING_TO_SLAVE: + expectModifyIfAck(aec, false); + EXPECT_THROW(syncStorage->setIfNotExists(ns, "key1", { 0x0a, 0x0b, 0x0c }), BackendError); + break; default: FAIL() << "No mapping for AsyncRedisCommandDispatcherErrorCode value: " << aec; break;