File tree Expand file tree Collapse file tree 4 files changed +847
-3
lines changed
concordium-consensus/tests/scheduler Expand file tree Collapse file tree 4 files changed +847
-3
lines changed Original file line number Diff line number Diff line change @@ -65,3 +65,6 @@ xcuserdata/
6565/scripts /distribution /macOS-package /NodeConfigurationInstallerPlugin /* .gcno
6666# Code coverage report
6767lcov.info
68+ # Test artefacts
69+ .stack-work-coverage *
70+ * .blob
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import qualified Data.Map.Strict as Map
2828import qualified Data.Set as Set
2929import Data.Word
3030import Lens.Micro.Platform
31+ import System.IO.Temp
3132import Test.HUnit
3233
3334import qualified Concordium.Crypto.SHA256 as Hash
@@ -206,9 +207,10 @@ runTestBlockStateWithCacheSize :: Int -> PersistentBSM pv a -> IO a
206207runTestBlockStateWithCacheSize cacheSize computation =
207208 runSilentLogger $
208209 Blob. runBlobStoreTemp " ." $
209- BS. withNewAccountCacheAndLMDBAccountMap cacheSize " accountmap" $
210- BS. runPersistentBlockStateMonad $
211- _runPersistentBSM computation
210+ withTempDirectory " ." " accountmap" $ \ amPath ->
211+ BS. withNewAccountCacheAndLMDBAccountMap cacheSize amPath $
212+ BS. runPersistentBlockStateMonad $
213+ _runPersistentBSM computation
212214
213215-- | Run test block state computation with a account cache size and module cache size of 100.
214216--
You can’t perform that action at this time.
0 commit comments