]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librbd: fix librbrd test relative to trash purge
authorJulien Collet <julien.collet@cern.ch>
Thu, 1 Nov 2018 09:02:40 +0000 (10:02 +0100)
committerJason Dillaman <dillaman@redhat.com>
Fri, 11 Jan 2019 14:18:45 +0000 (09:18 -0500)
Signed-off-by: Julien Collet <julien.collet@cern.ch>
src/test/librbd/test_librbd.cc

index 770eb3e70f005387e6dcd727618c48f284316f3e..13ff63b9367d90599c1d64fb3bd149c94b4e7162 100644 (file)
@@ -6691,7 +6691,7 @@ TEST_F(TestLibRBD, TestTrashPurge) {
   uint64_t size = 1 << 18;
   int order = 12;
   ASSERT_EQ(0, create_image_pp(rbd, ioctx, name1.c_str(), size, &order));
-  ASSERT_EQ(0, create_image_pp(rbd, ioctx, name1.c_str(), size, &order));
+  ASSERT_EQ(0, create_image_pp(rbd, ioctx, name2.c_str(), size, &order));
 
   librbd::Image image1;
   ASSERT_EQ(0, rbd.open(ioctx, image1, name1.c_str(), nullptr));