Skip to content

Commit 997d996

Browse files
committed
fix test
1 parent ee79729 commit 997d996

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/t_unfair.ml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,11 @@ let run ~kind () =
1414
let pool =
1515
let on_init_thread ~dom_id:_ ~t_id () =
1616
Trace.set_thread_name (Printf.sprintf "pool worker %d" t_id)
17-
and around_task =
18-
( (fun self -> Trace.counter_int "n_tasks" (Ws_pool.num_tasks self)),
19-
fun self () -> Trace.counter_int "n_tasks" (Ws_pool.num_tasks self) )
2017
in
2118

2219
match kind with
23-
| `Simple -> Fifo_pool.create ~num_threads:3 ~on_init_thread ~around_task ()
24-
| `Ws_pool -> Ws_pool.create ~num_threads:3 ~on_init_thread ~around_task ()
20+
| `Simple -> Fifo_pool.create ~num_threads:3 ~on_init_thread ()
21+
| `Ws_pool -> Ws_pool.create ~num_threads:3 ~on_init_thread ()
2522
in
2623

2724
(* make all threads busy *)

0 commit comments

Comments
 (0)