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.
This commit is contained in:
James DeFelice 2020-10-17 17:15:28 -04:00 committed by GitHub
parent db8258ca58
commit 1a12c8084b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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") {