From 190fd92e69280825166880701cdca0b7ad05a0aa Mon Sep 17 00:00:00 2001 From: Yukihiro Okada Date: Thu, 29 Sep 2022 13:24:19 +0900 Subject: [PATCH] Minor change for retry logic for testing --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5897191f..8997a9f9 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -32,7 +32,7 @@ def run_with_retry(client, sql) return columns, rows rescue Trino::Client::TrinoQueryError => e if RETRYABLE_ERRORS.any? { |error| e.message =~ error } - sleep(i) + sleep(2 ** i) i += 1 next end