Skip to content

Commit

Permalink
test: Delete the test namespace in CLI test
Browse files Browse the repository at this point in the history
Delete the test namespace so that the pods therein are not leaked into other tests.

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
  • Loading branch information
jrajahalme authored and joestringer committed Aug 12, 2021
1 parent 2d075ea commit b4af6c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/k8sT/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ var _ = Describe("K8sCLI", func() {
_, err = kubectl.CiliumPolicyAction(
namespaceForTest, l3L4DenyPolicy, helpers.KubectlDelete, helpers.HelperTimeout)
Expect(err).Should(BeNil(), "Cannot delete L3 Policy")

kubectl.NamespaceDelete(namespaceForTest)
})
})

Expand Down

0 comments on commit b4af6c1

Please sign in to comment.