Skip to content

Commit

Permalink
Commented out a test due to a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GumpacG committed Jun 14, 2024
1 parent c2baa02 commit b1d3565
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import static glide.api.models.configuration.RequestRoutingConfiguration.SimpleSingleNodeRoute.RANDOM;
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertInstanceOf;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assumptions.assumeTrue;

Expand All @@ -22,12 +20,10 @@
import glide.api.models.configuration.RequestRoutingConfiguration.SingleNodeRoute;
import glide.api.models.configuration.RequestRoutingConfiguration.SlotIdRoute;
import glide.api.models.configuration.RequestRoutingConfiguration.SlotType;
import glide.api.models.exceptions.ConnectionException;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ExecutionException;
import lombok.SneakyThrows;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
Expand Down Expand Up @@ -220,9 +216,11 @@ public void watch() {
assertEquals(helloString, clusterClient.get(key3).get());

// WATCH can not have an empty String array parameter
ExecutionException executionException =
assertThrows(ExecutionException.class, () -> clusterClient.watch(new String[] {}).get());
assertInstanceOf(ConnectionException.class, executionException.getCause());
// Test fails due to https://github.com/amazon-contributing/redis-rs/issues/158
// ExecutionException executionException =
// assertThrows(ExecutionException.class, () -> clusterClient.watch(new String[]
// {}).get());
// assertInstanceOf(RequestException.class, executionException.getCause());
}

@Test
Expand Down

0 comments on commit b1d3565

Please sign in to comment.