fix: flaky and stupid tests in root lockdown (#18308)

This commit is contained in:
Harshavardhana 2023-10-24 13:22:44 -07:00 committed by GitHub
parent 6415dec37a
commit a7b1834772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -376,7 +376,8 @@ func configRetriableErrors(err error) bool {
return false
}
notInitialized := err.Error() == "Server not initialized, please try again"
notInitialized := strings.Contains(err.Error(), "Server not initialized, please try again") ||
errors.Is(err, errServerNotInitialized)
// Initializing sub-systems needs a retry mechanism for
// the following reasons: