From 291d0cbd2f4b114dde46ec94a59243becc1af244 Mon Sep 17 00:00:00 2001 From: Tim Allclair Date: Wed, 23 Jan 2019 17:40:42 -0800 Subject: [PATCH] Fix deleted RuntimeClass CRD recovery test flake --- test/e2e/node/runtimeclass.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/e2e/node/runtimeclass.go b/test/e2e/node/runtimeclass.go index 692966aa504..ba971ba4604 100644 --- a/test/e2e/node/runtimeclass.go +++ b/test/e2e/node/runtimeclass.go @@ -132,7 +132,11 @@ var _ = SIGDescribe("RuntimeClass [Feature:RuntimeClass]", func() { rcName := createRuntimeClass(f, "valid", "") pod := createRuntimeClassPod(f, rcName) - expectPodSuccess(f, pod) + + // Before the pod can be run, the RuntimeClass informer must time out, by which time the Kubelet + // will probably be in a backoff state, so the pod can take a long time to start. + framework.ExpectNoError(framework.WaitForPodSuccessInNamespaceSlow( + f.ClientSet, pod.Name, f.Namespace.Name)) }) // TODO(tallclair): Test an actual configured non-default runtimeHandler.