Skip to content
Snippets Groups Projects
Commit 4fcec0ed authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

test threaded

parent 0c6e8db2
No related branches found
No related tags found
2 merge requests!755Production Release | nshmp-haz,!754NSHM Unit tests
......@@ -63,7 +63,7 @@ class NshmTestUtils {
return new NshmModel(
nshm,
ModelLoader.load(nshm.modelPath()),
Executors.newFixedThreadPool(1));
Executors.newFixedThreadPool(cores));
}
/**
......
......@@ -8,6 +8,7 @@ import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.Executors;
import java.util.logging.Logger;
import org.junit.jupiter.api.Test;
......@@ -145,7 +146,10 @@ class NshmTests {
*/
@Test
final void testConus2018() throws IOException {
NshmTestUtils.testNshm(NSHMS.get("nshm-conus-2018"), Optional.ofNullable(getSite()));
var service = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
service.execute(() -> {
NshmTestUtils.testNshm(NSHMS.get("nshm-conus-2018"), Optional.ofNullable(getSite()));
});
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment