rbd: clean images and pools in tests

This commit is contained in:
Sylvain Baubeau 2015-01-15 15:18:18 +01:00
parent 75e9c455a6
commit 5671536b12

View File

@ -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()
}