Don't delete container with task
Make sure we don't delete a container with a live task Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -163,11 +163,11 @@ func TestCheckpointRestoreNewContainer(t *testing.T) {
|
||||
|
||||
<-statusC
|
||||
|
||||
if err := container.Delete(ctx); err != nil {
|
||||
if _, err := task.Delete(ctx); err != nil {
|
||||
t.Error(err)
|
||||
return
|
||||
}
|
||||
if _, err := task.Delete(ctx); err != nil {
|
||||
if err := container.Delete(ctx); err != nil {
|
||||
t.Error(err)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user