From a7b183477227e10a7a261b9230109c3cbdc46426 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 24 Oct 2023 13:22:44 -0700 Subject: [PATCH] fix: flaky and stupid tests in root lockdown (#18308) --- cmd/server-main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/server-main.go b/cmd/server-main.go index ea0ec28cd..99bf80ce7 100644 --- a/cmd/server-main.go +++ b/cmd/server-main.go @@ -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: