mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
be nicer to mac OS' lazy scheduler in tests
This commit is contained in:
parent
330e026d0a
commit
12ac1de588
1 changed files with 2 additions and 2 deletions
|
|
@ -198,8 +198,8 @@ let stop timer =
|
||||||
~f:(fun () -> CCLock.update n (fun x -> x+2));
|
~f:(fun () -> CCLock.update n (fun x -> x+2));
|
||||||
ignore (Thread.create
|
ignore (Thread.create
|
||||||
(fun _ -> Thread.delay 0.4; CCLock.set res (CCLock.get n)) ());
|
(fun _ -> Thread.delay 0.4; CCLock.set res (CCLock.get n)) ());
|
||||||
after timer 0.2
|
after timer 0.1
|
||||||
~f:(fun () -> CCLock.update n (fun x -> x * 4));
|
~f:(fun () -> CCLock.update n (fun x -> x * 4));
|
||||||
Thread.delay 0.6 ;
|
Thread.delay 0.6 ;
|
||||||
OUnit.assert_equal 6 (CCLock.get res);
|
OUnit.assert_equal ~printer:Q.Print.int 6 (CCLock.get res);
|
||||||
*)
|
*)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue