Skip to content

Commit

Permalink
test/wip: add the sleeps back
Browse files Browse the repository at this point in the history
  • Loading branch information
bogovicj committed Sep 24, 2024
1 parent cdea45e commit 2c3c6e1
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/test/java/org/janelia/saalfeldlab/n5/TestExportImports.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void test4dN5v()
}

@Test
public void testReadWriteParse()
public void testReadWriteParse() throws InterruptedException
{
final HashMap<String,String> typeToExtension = new HashMap<>();
typeToExtension.put( "FILESYSTEM", "n5" );
Expand Down Expand Up @@ -163,6 +163,7 @@ public void testReadWriteParse()
final String dataset = datasetBase;

singleReadWriteParseTest( imp, n5RootPath, dataset, blockSizeString, metatype, compressionString, true );
Thread.sleep(50);
}
}
}
Expand Down Expand Up @@ -353,10 +354,14 @@ public void testMultiChannel()
{
for( final String suffix : new String[] { ".h5", ".n5", ".zarr" })
{
testMultiChannelHelper(N5Importer.MetadataN5ViewerKey, suffix);
testMultiChannelHelper(N5Importer.MetadataN5CosemKey, suffix);
testMultiChannelHelper(N5Importer.MetadataOmeZarrKey, suffix);
testMultiChannelHelper(N5Importer.MetadataImageJKey, suffix);
try {
testMultiChannelHelper(N5Importer.MetadataN5ViewerKey, suffix);
testMultiChannelHelper(N5Importer.MetadataN5CosemKey, suffix);
testMultiChannelHelper(N5Importer.MetadataOmeZarrKey, suffix);
testMultiChannelHelper(N5Importer.MetadataImageJKey, suffix);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}

Expand Down Expand Up @@ -570,10 +575,9 @@ public void reset() {

}

public void testMultiChannelHelper( final String metatype, final String suffix )
public void testMultiChannelHelper( final String metatype, final String suffix ) throws InterruptedException
{
final int bitDepth = 8;

final String blockSizeString = "16";
final String compressionString = "raw";

Expand Down Expand Up @@ -601,6 +605,7 @@ public void testMultiChannelHelper( final String metatype, final String suffix )
final String n5RootPath = baseDir + "/test_" + metatype + "_" + dimCode + suffix;
final String dataset = String.format("/%s", dimCode);
singleReadWriteParseTest( imp, n5RootPath, dataset, blockSizeString, metatype, compressionString, true, nc == 1 );
Thread.sleep(50);
}
}
}
Expand Down

0 comments on commit 2c3c6e1

Please sign in to comment.