]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/ceph_test_msgr: fix -Wsign-compare warnings
authorKefu Chai <kchai@redhat.com>
Fri, 26 Aug 2016 02:44:50 +0000 (10:44 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 26 Aug 2016 02:50:29 +0000 (10:50 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/msgr/test_msgr.cc

index f249c44e371458b7e210781339cfa84a9c837e92..bb1a55ae274a4f422370550bd934f4e6a670a7a5 100644 (file)
@@ -499,9 +499,9 @@ TEST_P(MessengerTest, StatefulTest) {
     cli_dispatcher.got_new = false;
   }
   // resetcheck happen
-  ASSERT_EQ(static_cast<Session*>(conn->get_priv())->get_count(), 1);
+  ASSERT_EQ(1U, static_cast<Session*>(conn->get_priv())->get_count());
   server_conn = server_msgr->get_connection(client_msgr->get_myinst());
-  ASSERT_EQ(static_cast<Session*>(server_conn->get_priv())->get_count(), 1);
+  ASSERT_EQ(1U, static_cast<Session*>(server_conn->get_priv())->get_count());
   cli_dispatcher.got_remote_reset = false;
 
   server_msgr->shutdown();