Skip to content

Commit

Permalink
Fix internal tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole committed May 2, 2024
1 parent 9b0eeb5 commit 30e65c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/cleanup_lin.ml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Test.check_exn
(RT.arb_cmds_triple seq_len par_len)
(fun input ->
try
ignore (RT.lin_prop input);
ignore (Util.Domain_pair.run (fun pool -> RT.lin_prop ~pool input));
Atomic.get cleanup_counter = 0
with
| RConf.Already_cleaned -> failwith "Already cleaned"
Expand Down
3 changes: 2 additions & 1 deletion test/cleanup_stm.ml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ for _i=1 to 100 do
try
Test.check_exn ~rand
(Test.make ~count:1000 ~name:"STM ensure cleanup test parallel"
(RT_dom.arb_cmds_triple 20 12) RT_dom.agree_prop_par) (* without retries *)
(RT_dom.arb_cmds_triple 20 12)
(fun triple -> Util.Domain_pair.run (fun pool -> RT_dom.agree_prop_par ~pool triple))) (* without retries *)
with _e -> incr i; assert (!status = Some Cleaned);
done;
assert (!i = 100);
Expand Down

0 comments on commit 30e65c2

Please sign in to comment.