From 6d880724cc553ccc902a88f7f871fd7ea0b44790 Mon Sep 17 00:00:00 2001 From: tsinglua Date: Fri, 13 Mar 2026 22:42:00 +0800 Subject: [PATCH] refactor(test): use the built-in max/min to simplify the code (#4576) Signed-off-by: tsinglua Co-authored-by: Bo-Yi Wu --- test_helpers.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test_helpers.go b/test_helpers.go index 20d20032..146be8f3 100644 --- a/test_helpers.go +++ b/test_helpers.go @@ -49,10 +49,7 @@ func waitForServerReady(url string, maxAttempts int) error { } // Exponential backoff: 10ms, 20ms, 40ms, 80ms, 160ms... - backoff := time.Duration(10*(1< 500*time.Millisecond { - backoff = 500 * time.Millisecond - } + backoff := min(time.Duration(10*(1<