diff options
author | Josh Durgin <josh.durgin@inktank.com> | 2013-02-26 00:55:36 +0100 |
---|---|---|
committer | Josh Durgin <josh.durgin@inktank.com> | 2013-02-26 00:56:00 +0100 |
commit | 345aa2df547d6262a3f0c7c6f839ce8442841e10 (patch) | |
tree | a3e6bf927f4de25884d0c50a39feed16f63e11f8 /src/test | |
parent | qa: output rados test names as they run (diff) | |
download | ceph-345aa2df547d6262a3f0c7c6f839ce8442841e10.tar.xz ceph-345aa2df547d6262a3f0c7c6f839ce8442841e10.zip |
test_rbd: close image before removing it
This error was masked before by watch notify not differentiating
between watches from the same client with different cookies.
Reopen the image at the end of this test so teardown works.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/pybind/test_rbd.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/pybind/test_rbd.py b/src/test/pybind/test_rbd.py index a03f14ee101..fbcd3f78040 100644 --- a/src/test/pybind/test_rbd.py +++ b/src/test/pybind/test_rbd.py @@ -587,6 +587,7 @@ class TestClone(object): global features self.image.set_snap('snap1') eq(self.image.list_children(), [('rbd', 'clone')]) + self.clone.close() self.rbd.remove(ioctx, 'clone') eq(self.image.list_children(), []) @@ -604,6 +605,7 @@ class TestClone(object): eq(self.image.list_children(), []) self.rbd.clone(ioctx, IMG_NAME, 'snap1', ioctx, 'clone', features) eq(self.image.list_children(), [('rbd', 'clone')]) + self.clone = Image(ioctx, 'clone') class TestFlatten(TestClone): |