Skip to content

Commit

Permalink
Allow the -delete-namespace flag to work on origin tests
Browse files Browse the repository at this point in the history
Regressed when we started using our own logic.
  • Loading branch information
smarterclayton committed Jun 25, 2018
1 parent 9a09936 commit 360d99f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/extended/util/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (c *CLI) TeardownProject() {
if len(c.configPath) > 0 {
os.Remove(c.configPath)
}
if len(c.namespacesToDelete) > 0 {
if e2e.TestContext.DeleteNamespace && len(c.namespacesToDelete) > 0 {
timeout := e2e.DefaultNamespaceDeletionTimeout
if c.kubeFramework.NamespaceDeletionTimeout != 0 {
timeout = c.kubeFramework.NamespaceDeletionTimeout
Expand Down

0 comments on commit 360d99f

Please sign in to comment.