Skip to content

Commit 360d99f

Browse files
Allow the -delete-namespace flag to work on origin tests
Regressed when we started using our own logic.
1 parent 9a09936 commit 360d99f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/extended/util/cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func (c *CLI) TeardownProject() {
210210
if len(c.configPath) > 0 {
211211
os.Remove(c.configPath)
212212
}
213-
if len(c.namespacesToDelete) > 0 {
213+
if e2e.TestContext.DeleteNamespace && len(c.namespacesToDelete) > 0 {
214214
timeout := e2e.DefaultNamespaceDeletionTimeout
215215
if c.kubeFramework.NamespaceDeletionTimeout != 0 {
216216
timeout = c.kubeFramework.NamespaceDeletionTimeout

0 commit comments

Comments
 (0)