X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tst%2Ferror_test.cpp;h=4a345b9f821a03419e1269716d4415a1c721e118;hb=refs%2Fchanges%2F28%2F1028%2F1;hp=86e5134059b246e02736b0f4987b915c1b153e1c;hpb=b8cd8b6087862ff04c9e39a0235ebf870c28ce39;p=ric-plt%2Fsdl.git diff --git a/tst/error_test.cpp b/tst/error_test.cpp index 86e5134..4a345b9 100644 --- a/tst/error_test.cpp +++ b/tst/error_test.cpp @@ -87,6 +87,10 @@ TEST_F(ErrorCodesTest, AllAsyncRedisCommandDispatcherErrorCodesHaveCorrectDescri ec = aec; EXPECT_EQ("redis I/O error", getErrorCodeMessage(ec)); break; + case AsyncRedisCommandDispatcherErrorCode::WRITING_TO_SLAVE: + ec = aec; + EXPECT_EQ("writing to slave", getErrorCodeMessage(ec)); + break; case AsyncRedisCommandDispatcherErrorCode::END_MARKER: ec = aec; EXPECT_EQ("unsupported error code for message()", getErrorCodeMessage(ec)); @@ -141,6 +145,10 @@ TEST_F(ErrorCodesTest, AllAsyncRedisCommandDispatcherErrorCodesAreMappedToCorrec ec = aec; EXPECT_TRUE(ec == InternalError::BACKEND_ERROR); break; + case AsyncRedisCommandDispatcherErrorCode::WRITING_TO_SLAVE: + ec = aec; + EXPECT_TRUE(ec == InternalError::BACKEND_ERROR); + break; case AsyncRedisCommandDispatcherErrorCode::END_MARKER: ec = aec; EXPECT_TRUE(ec == InternalError::SDL_ERROR_CODE_LOGIC_ERROR);