Skip to content

Commit ffd5deb

Browse files
committed
adjust test for store::list
1 parent a1e3601 commit ffd5deb

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/test/java/dev/zarr/zarrjava/store/WritableStoreTest.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,19 @@ public void testList() throws IOException, ZarrException {
3131
"array/c/0/0",
3232
"array/c/0/1",
3333
"zarr.json",
34-
"array",
3534
"array/c/1/0",
36-
"array/c/1",
37-
"array/c/0",
38-
"array/zarr.json",
39-
"array/c"
35+
"array/zarr.json"
4036
));
4137

4238
java.util.Set<String> actualKeys = storeHandle.resolve("subgroup").list()
4339
.map(node -> String.join("/", node))
4440
.collect(Collectors.toSet());
4541
Assertions.assertEquals(expectedSubgroupKeys, actualKeys);
4642

47-
List<String> allKeys = storeHandle.list()
43+
List<String> allKeys = ((Store.ListableStore) storeHandle.store).list()
4844
.map(node -> String.join("/", node))
4945
.collect(Collectors.toList());
50-
Assertions.assertEquals(21, allKeys.size(), "Total number of keys in store should be 21 but was: " + allKeys);
46+
Assertions.assertEquals(12, allKeys.size(), "Total number of keys in store should be 12 but was: " + allKeys);
5147
}
5248

5349
@Test

0 commit comments

Comments
 (0)