mirror of
https://github.com/ceph/go-ceph
synced 2025-01-12 00:59:58 +00:00
rbd: clean images and pools in tests
This commit is contained in:
parent
75e9c455a6
commit
5671536b12
@ -48,6 +48,13 @@ func TestGetImageNames(t *testing.T) {
|
||||
sort.Strings(imageNames)
|
||||
assert.Equal(t, createdList, imageNames)
|
||||
|
||||
for _, name := range(createdList) {
|
||||
img := rbd.GetImage(ioctx, name)
|
||||
err := img.Remove()
|
||||
assert.NoError(t, err)
|
||||
}
|
||||
|
||||
ioctx.Destroy()
|
||||
conn.DeletePool(poolname)
|
||||
conn.Shutdown()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user