Skip to content

Commit 7aadbe3

Browse files
added parallelism environment
1 parent 27963ac commit 7aadbe3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

deku-p/src/core/block_storage/tests/block_storage_tests.ml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ let make_block_storage env sw =
3333

3434
let test_empty_block_load env () =
3535
try
36+
Parallel.Pool.run ~env ~domains:4 @@ fun () ->
3637
Eio.Switch.run @@ fun sw ->
3738
let block_storage = make_block_storage env sw in
3839
let (Block { hash; _ } as block) = block ~default_block_size:0 in
@@ -43,7 +44,12 @@ let test_empty_block_load env () =
4344
block_storage
4445
with
4546
| Some json ->
46-
Data_encoding.Json.destruct Deku_consensus.Block.encoding json
47+
Format.eprintf "done!\n%!";
48+
let b =
49+
Data_encoding.Json.destruct Deku_consensus.Block.encoding json
50+
in
51+
Format.eprintf "done!\n%!";
52+
b
4753
| None -> Genesis.block
4854
in
4955
Alcotest.(check' block_testable)

0 commit comments

Comments
 (0)