Ignore client-side throttling in kubectl stderr

Signed-off-by: Monis Khan <mok@vmware.com>
This commit is contained in:
Monis Khan 2021-04-19 06:23:09 -04:00
parent 521adffb17
commit 73716f1b91
No known key found for this signature in database
GPG Key ID: 52C90ADA01B269B8

View File

@ -65,7 +65,10 @@ func requireCleanKubectlStderr(t *testing.T, stderr string) {
if strings.Contains(line, "Throttling request took") { if strings.Contains(line, "Throttling request took") {
continue continue
} }
require.Failf(t, "unexpected kubectl stderr", "kubectl produced unexpected stderr output:\n%s\n\n", stderr) if strings.Contains(line, "due to client-side throttling, not priority and fairness") {
continue
}
require.Failf(t, "unexpected kubectl stderr", "kubectl produced unexpected stderr:\n%s\n\n", stderr)
return return
} }
} }