mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Fix namespace deletion log in e2e test framework.
This commit is contained in:
parent
868da1e08b
commit
78f929a433
@ -258,12 +258,11 @@ func (f *Framework) AfterEach() {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if TestContext.DeleteNamespace {
|
||||
if !TestContext.DeleteNamespace {
|
||||
Logf("Found DeleteNamespace=false, skipping namespace deletion!")
|
||||
} else if TestContext.DeleteNamespaceOnFailure {
|
||||
Logf("Found DeleteNamespaceOnFailure=false, skipping namespace deletion!")
|
||||
} else {
|
||||
Logf("Found DeleteNamespaceOnFailure=false and current test failed, skipping namespace deletion!")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Paranoia-- prevent reuse!
|
||||
|
Loading…
Reference in New Issue
Block a user