Skip to content

Commit 9b73829

Browse files
committed
fix tests with path collision
1 parent 78c0e3a commit 9b73829

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void testWriteRead() throws IOException, ZarrException {
6363
public void testWriteReadV3(boolean useParallel) throws ZarrException, IOException {
6464
int[] testData = testDataInt();
6565
Store store = writableStore();
66-
StoreHandle storeHandle = store.resolve("testWriteReadV3").resolve(store.getClass().getSimpleName());
66+
StoreHandle storeHandle = store.resolve("testWriteReadV3").resolve(store.getClass().getSimpleName()).resolve("" + useParallel);
6767

6868
dev.zarr.zarrjava.v3.Group group = dev.zarr.zarrjava.v3.Group.create(storeHandle);
6969
Array array = group.createArray("array", b -> b
@@ -86,11 +86,10 @@ public void testWriteReadV3(boolean useParallel) throws ZarrException, IOExcepti
8686

8787
@ParameterizedTest
8888
@CsvSource({"false", "true",})
89-
public void testMemoryStoreV2(boolean useParallel) throws ZarrException, IOException {
89+
public void testWriteReadV2(boolean useParallel) throws ZarrException, IOException {
9090
int[] testData = testDataInt();
9191
Store store = writableStore();
92-
StoreHandle storeHandle = store.resolve("testMemoryStoreV2").resolve(store.getClass().getSimpleName());
93-
92+
StoreHandle storeHandle = store.resolve("testMemoryStoreV2").resolve(store.getClass().getSimpleName()).resolve("" + useParallel);
9493
dev.zarr.zarrjava.v2.Group group = dev.zarr.zarrjava.v2.Group.create(storeHandle);
9594
dev.zarr.zarrjava.v2.Array array = group.createArray("array", b -> b
9695
.withShape(1024, 1024)

0 commit comments

Comments
 (0)