e2e: retry when a "transport is closing" error is hit

There have been occasional CI job failures due to "transport is closing"
errors. Adding this error to the isRetryableAPIError() function should
make sure to retry the request until the connection is restored.

Fixes: #2613
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2021-11-03 09:58:45 +01:00 committed by mergify[bot]
parent 1f650e1204
commit 1fa8939e84

View File

@ -41,6 +41,11 @@ func isRetryableAPIError(err error) bool {
return true
}
// "transport is closing" is an internal gRPC err, we can not use ErrConnClosing
if strings.Contains(err.Error(), "transport is closing") {
return true
}
return false
}