fix: Integration test instability (#3597)

There are a couple of changes here which should improve stability of the tests.  Hopefully that will be sufficient, but it is difficult to tell for sure if it is complete.
This commit is contained in:
Bill Wallace authored and GitHub committed 2023-08-15 07:20:45 -04:00
1 parent 799d0793fd
commit 884577a23d
6 files changed
+51 -40

No files matched your search

+5 -6
View File
@@ -54,12 +54,11 @@ export default async function init({
},
});
// For debugging large datasets
const MAX_CACHE_SIZE_1GB = 1073741824;
const maxCacheSize = appConfig.maxCacheSize;
cornerstone.cache.setMaxCacheSize(
maxCacheSize ? maxCacheSize : MAX_CACHE_SIZE_1GB
);
// For debugging large datasets, otherwise prefer the defaults
const { maxCacheSize } = appConfig;
if (maxCacheSize) {
cornerstone.cache.setMaxCacheSize(maxCacheSize);
}
initCornerstoneTools();