Add conversion test
@@ -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;
