GehaFearless commented on code in PR #1825:
URL:
https://github.com/apache/incubator-pegasus/pull/1825#discussion_r1445700338
##########
src/runtime/test/host_port_test.cpp:
##########
@@ -166,6 +172,41 @@ TEST(host_port_test, rpc_group_host_port)
ASSERT_FALSE(g->contains(hp2));
ASSERT_EQ(0u, g->members().size());
ASSERT_EQ(invalid_hp, g->leader());
+
+ // operator <
+ host_port hp_grp1;
+ hp_grp1.assign_group("test_group");
+ if (reinterpret_cast<uint64_t>(hp_grp.group_host_port().get()) <
+ reinterpret_cast<uint64_t>(hp_grp1.group_host_port().get())) {
+ ASSERT_TRUE(hp_grp < hp_grp1);
+ } else {
+ ASSERT_FALSE(hp_grp < hp_grp1);
Review Comment:
`>=` not declare
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]