diff --git a/test/dune b/test/dune index 2a652c8d..0ce4ed69 100644 --- a/test/dune +++ b/test/dune @@ -222,7 +222,7 @@ (<> %{os_type} Win32) (<> %{architecture} i386) (<> %{architecture} riscv))) - (libraries picos)) + (libraries picos js_of_ocaml)) ;; diff --git a/test/test_js_of_ocaml.ml b/test/test_js_of_ocaml.ml index 66925ef0..501748ce 100644 --- a/test/test_js_of_ocaml.ml +++ b/test/test_js_of_ocaml.ml @@ -1,6 +1,6 @@ open Picos let () = - Printf.printf "Hello, from js_of_ocaml with Picos!\n%!"; let trigger = Trigger.create () in - Trigger.signal trigger + Trigger.signal trigger; + match Trigger.await trigger with None -> () | Some _ -> assert false