Skip to content

Commit 83e329a

Browse files
authored
Merge pull request #1471 from Concordium/SPO-59-test-sponsored-transactions
Test Sponsored Transaction Execution
2 parents 8f7244c + e5c7770 commit 83e329a

File tree

4 files changed

+847
-3
lines changed

4 files changed

+847
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,6 @@ xcuserdata/
6565
/scripts/distribution/macOS-package/NodeConfigurationInstallerPlugin/*.gcno
6666
# Code coverage report
6767
lcov.info
68+
# Test artefacts
69+
.stack-work-coverage*
70+
*.blob

concordium-consensus/tests/scheduler/SchedulerTests/Helpers.hs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import qualified Data.Map.Strict as Map
2828
import qualified Data.Set as Set
2929
import Data.Word
3030
import Lens.Micro.Platform
31+
import System.IO.Temp
3132
import Test.HUnit
3233

3334
import qualified Concordium.Crypto.SHA256 as Hash
@@ -206,9 +207,10 @@ runTestBlockStateWithCacheSize :: Int -> PersistentBSM pv a -> IO a
206207
runTestBlockStateWithCacheSize 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
--

0 commit comments

Comments
 (0)