From 1a12c8084b2937dc0058eab32f2ce9a88ed31eb1 Mon Sep 17 00:00:00 2001 From: James DeFelice Date: Sat, 17 Oct 2020 17:15:28 -0400 Subject: [PATCH] fix test flakes I've observed this test occasionally failing due to 403 errors. I think there's something racing within apiserver w/ respect to RBAC and that if this test were more patient, then it would not flake this way. --- test/e2e/apimachinery/aggregator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/apimachinery/aggregator.go b/test/e2e/apimachinery/aggregator.go index 94c76628394..927f35b95b9 100644 --- a/test/e2e/apimachinery/aggregator.go +++ b/test/e2e/apimachinery/aggregator.go @@ -375,7 +375,7 @@ func TestSampleAPIServer(f *framework.Framework, aggrclient *aggregatorclient.Cl if !ok { return false, err } - if status.Status().Code == 503 { + if status.Status().Code == 403 || status.Status().Code == 503 { return false, nil } if status.Status().Code == 404 && strings.HasPrefix(err.Error(), "the server could not find the requested resource") {