From cb3389c95e77529515b61a21d51ee9aae3f47b30 Mon Sep 17 00:00:00 2001 From: SanHalacogluImproving Date: Fri, 8 Mar 2024 16:07:52 -0800 Subject: [PATCH] Fixed functionality of the power function. --- .../src/test/java/glide/cluster/ClusterClientTests.java | 4 ++-- .../src/test/java/glide/standalone/StandaloneClientTests.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java/integTest/src/test/java/glide/cluster/ClusterClientTests.java b/java/integTest/src/test/java/glide/cluster/ClusterClientTests.java index 2846eace63..cdd1eba245 100644 --- a/java/integTest/src/test/java/glide/cluster/ClusterClientTests.java +++ b/java/integTest/src/test/java/glide/cluster/ClusterClientTests.java @@ -80,7 +80,7 @@ public void send_and_receive_large_values() { RedisClusterClient client = RedisClusterClient.CreateClient(commonClusterClientConfig().build()).get(); - int length = 2 ^ 16; + int length = 65536; String key = getRandomString(length); String value = getRandomString(length); @@ -109,7 +109,7 @@ public void send_and_receive_non_ascii_unicode() { @SneakyThrows @ParameterizedTest - @ValueSource(ints = {100, 2 ^ 16}) + @ValueSource(ints = {100, 65536}) public void client_can_handle_concurrent_workload(int valueSize) { ExecutorService executorService = Executors.newCachedThreadPool(); RedisClusterClient client = diff --git a/java/integTest/src/test/java/glide/standalone/StandaloneClientTests.java b/java/integTest/src/test/java/glide/standalone/StandaloneClientTests.java index 3d3eaa4e19..084521fb5c 100644 --- a/java/integTest/src/test/java/glide/standalone/StandaloneClientTests.java +++ b/java/integTest/src/test/java/glide/standalone/StandaloneClientTests.java @@ -66,7 +66,7 @@ public void register_client_name_and_version() { public void send_and_receive_large_values() { RedisClient client = RedisClient.CreateClient(commonClientConfig().build()).get(); - int length = 2 ^ 16; + int length = 65536; String key = getRandomString(length); String value = getRandomString(length); @@ -94,7 +94,7 @@ public void send_and_receive_non_ascii_unicode() { @SneakyThrows @ParameterizedTest - @ValueSource(ints = {100, 2 ^ 16}) + @ValueSource(ints = {100, 65536}) public void client_can_handle_concurrent_workload(int valueSize) { ExecutorService executorService = Executors.newCachedThreadPool(); RedisClient client = RedisClient.CreateClient(commonClientConfig().build()).get();