Skip to content

Commit

Permalink
Make client test with long value more meaningful
Browse files Browse the repository at this point in the history
  • Loading branch information
akudiyar committed Jan 2, 2024
1 parent b9092bb commit a64753f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,10 @@ public void evalReturnNil() throws ExecutionException, InterruptedException {
@Test
public void testCallReturnLongValue() throws Exception {
client.getVersion();
List<?> result = client.call("user_function_return_long_value").get();
List<Integer> result = client.callForSingleResult(
"user_function_return_long_value", List.class).get();

assertEquals(1, result.size());
assertEquals(2800 * 3, result.size());
assertFalse(result.stream().anyMatch(v -> v != 1));
}
}

0 comments on commit a64753f

Please sign in to comment.