]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librados: reorder parameter 16625/head
authorYan Jun <yan.jun8@zte.com.cn>
Thu, 27 Jul 2017 07:57:03 +0000 (15:57 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Thu, 27 Jul 2017 07:57:03 +0000 (15:57 +0800)
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/test/librados/watch_notify.cc

index 3ea9bead7582e3761a3e6430c6aa0650f3b89b2e..a525d518ffada699ab86397515a926cab5937d8b 100644 (file)
@@ -173,7 +173,7 @@ TEST_P(LibRadosWatchNotifyPP, WatchNotify) {
   ASSERT_EQ(0, ioctx.watch("foo", 0, &handle, &ctx));
   std::list<obj_watch_t> watches;
   ASSERT_EQ(0, ioctx.list_watchers("foo", &watches));
-  ASSERT_EQ(watches.size(), 1u);
+  ASSERT_EQ(1u, watches.size());
   bufferlist bl2;
   ASSERT_EQ(0, ioctx.notify("foo", 0, bl2));
   TestAlarm alarm;
@@ -209,7 +209,7 @@ TEST_F(LibRadosWatchNotifyECPP, WatchNotify) {
   ASSERT_EQ(0, ioctx.watch("foo", 0, &handle, &ctx));
   std::list<obj_watch_t> watches;
   ASSERT_EQ(0, ioctx.list_watchers("foo", &watches));
-  ASSERT_EQ(watches.size(), 1u);
+  ASSERT_EQ(1u, watches.size());
   bufferlist bl2;
   ASSERT_EQ(0, ioctx.notify("foo", 0, bl2));
   TestAlarm alarm;