From 41e9a200063375dc7cc5d9dfa385782ebdda4676 Mon Sep 17 00:00:00 2001 From: Taishi Kasuga Date: Thu, 26 Sep 2024 15:44:13 +0900 Subject: [PATCH] fix --- test/test_against_cluster_scale.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_against_cluster_scale.rb b/test/test_against_cluster_scale.rb index 7f05ec8..107107a 100644 --- a/test/test_against_cluster_scale.rb +++ b/test/test_against_cluster_scale.rb @@ -248,7 +248,7 @@ def self.test_order end def do_test_after_scaled_out - all_keys = NUMBER_OF_KEYS.flat_map { |i| ["key#{i}", "{group#{i / HASH_TAG_GRAIN}}:key#{i}"] }.sort + all_keys = Array.new(NUMBER_OF_KEYS) { |i| ["key#{i}", "{group#{i / HASH_TAG_GRAIN}}:key#{i}"] }.flatten.sort count = 0 @client.scan do |key| @@ -260,7 +260,7 @@ def do_test_after_scaled_out end def do_test_after_scaled_in - all_keys = NUMBER_OF_KEYS.flat_map { |i| ["key#{i}", "{group#{i / HASH_TAG_GRAIN}}:key#{i}"] }.sort + all_keys = Array.new(NUMBER_OF_KEYS) { |i| ["key#{i}", "{group#{i / HASH_TAG_GRAIN}}:key#{i}"] }.flatten.sort retryable(attempts: 3) do count = 0