Skip to content

Commit 1a12c80

Browse files
authored
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.
1 parent db8258c commit 1a12c80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/apimachinery/aggregator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ func TestSampleAPIServer(f *framework.Framework, aggrclient *aggregatorclient.Cl
375375
if !ok {
376376
return false, err
377377
}
378-
if status.Status().Code == 503 {
378+
if status.Status().Code == 403 || status.Status().Code == 503 {
379379
return false, nil
380380
}
381381
if status.Status().Code == 404 && strings.HasPrefix(err.Error(), "the server could not find the requested resource") {

0 commit comments

Comments
 (0)