test: ignore 404 when deleting pods

This commit is contained in:
Michail Kargakis
2016-11-06 13:30:47 +01:00
parent 8371a778f6
commit e7158d8eaf

View File

@@ -1444,7 +1444,10 @@ func testIterativeDeployments(f *framework.Framework) {
}
name := podList.Items[p].Name
framework.Logf("%02d: deleting deployment pod %q", i, name)
Expect(c.Core().Pods(ns).Delete(name, nil)).NotTo(HaveOccurred())
err := c.Core().Pods(ns).Delete(name, nil)
if err != nil && !errors.IsNotFound(err) {
Expect(err).NotTo(HaveOccurred())
}
}
}
}