diff --git a/integration/debug_test.go b/integration/debug_test.go index 59ce8dd661d..c38923a9a7d 100644 --- a/integration/debug_test.go +++ b/integration/debug_test.go @@ -81,18 +81,19 @@ func TestDebug(t *testing.T) { } } - for _, depName := range test.deployments { - deploy := client.GetDeployment(depName) - - annotations := deploy.Spec.Template.GetAnnotations() - verifyDebugAnnotations(annotations) - } for _, podName := range test.pods { pod := client.GetPod(podName) annotations := pod.Annotations verifyDebugAnnotations(annotations) } + + for _, depName := range test.deployments { + deploy := client.GetDeployment(depName) + + annotations := deploy.Spec.Template.GetAnnotations() + verifyDebugAnnotations(annotations) + } }) } }