From a1fcd2f6b3be7e1e10b08aaeba3912ffb5707d8c Mon Sep 17 00:00:00 2001 From: Stephan Saalfeld Date: Mon, 3 Oct 2022 20:50:44 -0400 Subject: [PATCH] fix: do not remove container to clear it in AbstractN5Test.testDeepList() * this worked for file-system based backends but breaks for e.g. AWS-S3 if the container is the bucket --- src/test/java/org/janelia/saalfeldlab/n5/AbstractN5Test.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/janelia/saalfeldlab/n5/AbstractN5Test.java b/src/test/java/org/janelia/saalfeldlab/n5/AbstractN5Test.java index 572f1f7e..3add6d28 100644 --- a/src/test/java/org/janelia/saalfeldlab/n5/AbstractN5Test.java +++ b/src/test/java/org/janelia/saalfeldlab/n5/AbstractN5Test.java @@ -499,7 +499,8 @@ public void testDeepList() { try { // clear container to start - n5.remove(); + for (final String g : n5.list("/")) + n5.remove(g); n5.createGroup(groupName); for (final String subGroup : subGroupNames)