Skip to content

Commit

Permalink
test: simplified zscan
Browse files Browse the repository at this point in the history
Signed-off-by: Jeronimo Irazabal <jeronimo.irazabal@gmail.com>
  • Loading branch information
jeroiraz committed Nov 26, 2022
1 parent 7592fe7 commit b19eafb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/test/java/io/codenotary/immudb4j/ScanTest.java
Expand Up @@ -29,17 +29,17 @@ public class ScanTest extends ImmuClientIntegrationTest {
public void t1() {
immuClient.openSession("defaultdb", "immudb", "immudb");

for (int j = 0; j < 3; j++) {
byte[] value1 = { 0, 1, 2, 3 };
byte[] value2 = { 4, 5, 6, 7 };

try {
immuClient.set("scan1", value1);
immuClient.set("scan2", value2);
} catch (CorruptedDataException e) {
Assert.fail("Failed at set.", e);
}
byte[] value1 = { 0, 1, 2, 3 };
byte[] value2 = { 4, 5, 6, 7 };

try {
immuClient.set("scan1", value1);
immuClient.set("scan2", value2);
} catch (CorruptedDataException e) {
Assert.fail("Failed at set.", e);
}

for (int j = 0; j < 3; j++) {
List<Entry> scanResult = immuClient.scanAll("scan");
System.out.println(scanResult.size());

Expand Down

0 comments on commit b19eafb

Please sign in to comment.