Skip to content

Commit

Permalink
rbd: clean images and pools in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce committed Jan 15, 2015
1 parent 75e9c45 commit 5671536
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rbd/rbd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit 5671536

Please sign in to comment.