mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
tags test: cleanup driver
If not we leak a devicemapper pool
This commit is contained in:
parent
7192be47c5
commit
cfdc284abe
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ func TestLookupImage(t *testing.T) {
|
||||||
}
|
}
|
||||||
defer os.RemoveAll(tmp)
|
defer os.RemoveAll(tmp)
|
||||||
store := mkTestTagStore(tmp, t)
|
store := mkTestTagStore(tmp, t)
|
||||||
|
defer store.graph.driver.Cleanup()
|
||||||
|
|
||||||
if img, err := store.LookupImage(testImageName); err != nil {
|
if img, err := store.LookupImage(testImageName); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
|
Loading…
Reference in a new issue