Code Review
/
ric-plt
/
sdl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add Sentinel change notification handling logic
[ric-plt/sdl.git]
/
tst
/
syncstorageimpl_test.cpp
diff --git
a/tst/syncstorageimpl_test.cpp
b/tst/syncstorageimpl_test.cpp
index
7eab410
..
aea2346
100644
(file)
--- a/
tst/syncstorageimpl_test.cpp
+++ b/
tst/syncstorageimpl_test.cpp
@@
-557,6
+557,10
@@
TEST_F(SyncStorageImplTest, AllDispatcherErrorCodesThrowCorrectException)
expectModifyIfAck(aec, false);
EXPECT_THROW(syncStorage->setIfNotExists(ns, "key1", { 0x0a, 0x0b, 0x0c }), BackendError);
break;
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;
default:
FAIL() << "No mapping for AsyncRedisCommandDispatcherErrorCode value: " << aec;
break;