This call cleans up state as part of the test:
|
testCanConnect(kubectl, namespace, "client-cannot-connect", service, 80, false) |
|
defer func() { |
|
By(fmt.Sprintf("Cleaning up the pod %s", podName)) |
|
err := k.CoreV1().Pods(ns).Delete(pod.Name, nil) |
|
ExpectWithOffset(2, err).NotTo(HaveOccurred(), "Pod %q should have been deleted", pod.Name) |
|
}() |
This is poor form, it prevents appropriate log gathering on failure.
This call cleans up state as part of the test:
cilium/test/k8sT/Policies.go
Line 861 in 4fd4e09
cilium/test/k8sT/Policies.go
Lines 1187 to 1191 in 4fd4e09
This is poor form, it prevents appropriate log gathering on failure.