Commits

Sebastien Mondet  committed 0564a9c

test: use `Deferred_list.pick_and_cancel`

  • Participants
  • Parent commits 0cee111

Comments (0)

Files changed (1)

     end
     >>= fun () ->
     section "test_plain_server stop_on";
-    Lwt.pick [
+    Deferred_list.pick_and_cancel [
       test_plain_server ~port:20000 ~stops:`With_stop_on;
       Lwt.(Lwt_unix.sleep 5. >>= fun () -> return (`Error (`Test_failed "TIMEOUT")));
     ]
     >>= fun () ->
     section "test_plain_server handler fails";
-    Lwt.pick [
+    Deferred_list.pick_and_cancel [
       test_plain_server ~port:20001 ~stops:`By_failing_in_handler;
       Lwt.(Lwt_unix.sleep 5. >>= fun () -> return (`Error (`Test_failed "TIMEOUT")));
     ]