aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-11-07 12:50:05 +0100
committerTor Egge <Tor.Egge@online.no>2023-11-07 12:50:05 +0100
commit9422fa1d423f3d1ae79bf50b4d750fcaf4a14c10 (patch)
treeedaf256a7ead7e5d45ea72fc73210fb50d4169ed /searchcore/src/tests/proton
parent8e983a117284a7e965e27e3a5c0a07cdbcb7d4cd (diff)
Test remove by gid for nonexisting gid and for gid with tombstone.
Diffstat (limited to 'searchcore/src/tests/proton')
-rw-r--r--searchcore/src/tests/proton/documentdb/feedhandler/feedhandler_test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/searchcore/src/tests/proton/documentdb/feedhandler/feedhandler_test.cpp b/searchcore/src/tests/proton/documentdb/feedhandler/feedhandler_test.cpp
index f783a415eed..20a6ac40de4 100644
--- a/searchcore/src/tests/proton/documentdb/feedhandler/feedhandler_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/feedhandler/feedhandler_test.cpp
@@ -237,6 +237,9 @@ struct MyFeedView : public test::DummyFeedView {
++update_count;
update_serial = op.getSerialNum();
}
+ void prepareRemove(RemoveOperation &op) override {
+ op.setDbDocumentId(1); // Set a "valid" lid for tombstone
+ }
void handleRemove(FeedToken token, const RemoveOperation &) override {
(void) token;
++remove_count;