From 3b39226709b2fd7122b75fdab79a3cb87ec72d49 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Mon, 9 Nov 2015 09:06:05 -0500 Subject: [PATCH] tests: fix typo in TestClsRbd.snapshots test case Fixes: #13727 Signed-off-by: Jason Dillaman --- src/test/cls_rbd/test_cls_rbd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/cls_rbd/test_cls_rbd.cc b/src/test/cls_rbd/test_cls_rbd.cc index 44f90e12ba4..b53cfa8c00c 100644 --- a/src/test/cls_rbd/test_cls_rbd.cc +++ b/src/test/cls_rbd/test_cls_rbd.cc @@ -782,7 +782,7 @@ TEST_F(TestClsRbd, snapshots) ASSERT_EQ("snap1", snap_names[1]); ASSERT_EQ(10u, snap_sizes[1]); - ASSERT_EQ(0, snapshot_rename(&ioctx, oid, 1, "snap1-rename")); + ASSERT_EQ(0, snapshot_rename(&ioctx, oid, 0, "snap1-rename")); ASSERT_EQ(0, snapshot_list(&ioctx, oid, snapc.snaps, &snap_names, &snap_sizes, &parents, &protection_status)); ASSERT_EQ(2u, snap_names.size());