ignore garden.ContainerNotFound error when deleting containers in cessna
@@ -5,6 +5,7 @@ import (
"net/http"
"os"
+ "code.cloudfoundry.org/garden"
"code.cloudfoundry.org/lager"
uuid "github.com/nu7hatch/gouuid"
@@ -69,11 +70,13 @@ var _ = AfterSuite(func() {
err = worker.GardenClient().Destroy(container.Handle())
if err != nil {
// once garden fixes container grace timeout to be indefinite we can remove this check
+ if _, ok := err.(garden.ContainerNotFoundError); !ok {
if err != gserver.ErrConcurrentDestroy {
Expect(err).NotTo(HaveOccurred())
}
}
}
+ }
volumes, err := worker.BaggageClaimClient().ListVolumes(logger, nil)
Expect(err).NotTo(HaveOccurred())
