mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
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:
parent
db8258ca58
commit
1a12c8084b
@ -375,7 +375,7 @@ func TestSampleAPIServer(f *framework.Framework, aggrclient *aggregatorclient.Cl
|
|||||||
if !ok {
|
if !ok {
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
if status.Status().Code == 503 {
|
if status.Status().Code == 403 || status.Status().Code == 503 {
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
if status.Status().Code == 404 && strings.HasPrefix(err.Error(), "the server could not find the requested resource") {
|
if status.Status().Code == 404 && strings.HasPrefix(err.Error(), "the server could not find the requested resource") {
|
||||||
|
Loading…
Reference in New Issue
Block a user