From e6bf12c531f051e9b5741a4ed2106719e4709bd5 Mon Sep 17 00:00:00 2001 From: Brian de Alwis Date: Mon, 22 Jun 2020 17:08:56 -0400 Subject: [PATCH] check pods before deployments --- integration/debug_test.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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) + } }) } }