Skip to content

Commit cabf231

Browse files
added worker teardown
1 parent faf9f62 commit cabf231

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ let test_empty_block_load env () =
5959
~msg:"level loaded block is equal to saved block" ~expected:block
6060
~actual:retrieved_block;
6161

62+
(* TODO: Fail the switch and capture the exception instead *)
63+
let (Deku_block_storage.Block_storage.Storage { worker; _ }) =
64+
block_storage
65+
in
66+
Parallel.Worker.teardown worker
6267
let (Deku_block_storage.Block_storage.Storage { worker; _ }) =
6368
block_storage
6469
in

0 commit comments

Comments
 (0)