diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-09-09 14:41:40 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-09-09 14:41:40 +0000 |
commit | 804d86930b4549150f44ffa426d8a84965627f72 (patch) | |
tree | a99fa99807ff273ef956fab4cf86444be4e04aac /searchlib | |
parent | c6552160827cd02d3aa0c0439f15be1823dc754a (diff) |
Add conversion test
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/tests/engine/proto_converter/proto_converter_test.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/searchlib/src/tests/engine/proto_converter/proto_converter_test.cpp b/searchlib/src/tests/engine/proto_converter/proto_converter_test.cpp index 693ef74086a..bd40a4566cd 100644 --- a/searchlib/src/tests/engine/proto_converter/proto_converter_test.cpp +++ b/searchlib/src/tests/engine/proto_converter/proto_converter_test.cpp @@ -246,7 +246,7 @@ TEST_F(SearchReplyTest, require_that_active_docs_is_converted) { EXPECT_EQ(proto.active_docs(), 200000); } -TEST_F(SearchReplyTest, require_that_soon_active_docs_is_converted) { +TEST_F(SearchReplyTest, require_that_target_active_docs_is_converted) { reply.coverage.setTargetActive(250000); convert(); EXPECT_EQ(proto.target_active_docs(), 250000); @@ -594,6 +594,11 @@ TEST_F(MonitorReplyTest, require_that_active_docs_is_converted) { convert(); EXPECT_EQ(proto.active_docs(), 12345); } +TEST_F(MonitorReplyTest, require_that_target_active_docs_is_converted) { + reply.targetActiveDocs = 12345; + convert(); + EXPECT_EQ(proto.target_active_docs(), 12345); +} TEST_F(MonitorReplyTest, require_that_distribution_key_is_converted) { reply.distribution_key = 7; |