when destroy container, should remove it also (#530)

This commit is contained in:
Minghe
2020-05-16 20:01:19 +08:00
committed by GitHub
parent 6214581ca8
commit a74b086219
9 changed files with 33 additions and 110 deletions

View File

@@ -55,6 +55,7 @@ func TestDriverDestroy(t *testing.T) {
ctx := context.Background()
name := "name"
dockerClient.EXPECT().StopContainer(ctx, name).Return(nil)
dockerClient.EXPECT().RemoveContainer(ctx, name).Return(nil)
if err := n.Destroy(ctx, name); err != nil {
t.Fatal(err)
}