mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-06 11:15:38 -05:00
update test
This commit is contained in:
parent
e3be2aceaa
commit
00078d8b43
2 changed files with 119 additions and 4 deletions
|
|
@ -101,7 +101,17 @@ let () =
|
||||||
in
|
in
|
||||||
Arg.parse opts ignore "echo client";
|
Arg.parse opts ignore "echo client";
|
||||||
|
|
||||||
|
let main () =
|
||||||
(* Lwt_engine.set @@ new Lwt_engine.libev (); *)
|
(* Lwt_engine.set @@ new Lwt_engine.libev (); *)
|
||||||
M_lwt.lwt_main @@ fun _runner ->
|
M_lwt.lwt_main @@ fun _runner ->
|
||||||
main ~port:!port ~n:!n ~n_conn:!n_conn ~verbose:!verbose
|
main ~port:!port ~n:!n ~n_conn:!n_conn ~verbose:!verbose
|
||||||
~msg_per_conn:!msg_per_conn ()
|
~msg_per_conn:!msg_per_conn ()
|
||||||
|
in
|
||||||
|
|
||||||
|
print_endline "first run";
|
||||||
|
main ();
|
||||||
|
assert (not (M_lwt.is_setup ()));
|
||||||
|
print_endline "second run";
|
||||||
|
main ();
|
||||||
|
assert (not (M_lwt.is_setup ()));
|
||||||
|
print_endline "done"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,21 @@ run echo server on port=12346
|
||||||
listening on port 12346
|
listening on port 12346
|
||||||
run echo client -p 12346 -n 10 --n-conn=2 -v
|
run echo client -p 12346 -n 10 --n-conn=2 -v
|
||||||
all done
|
all done
|
||||||
|
all done
|
||||||
connecting to port 12346 (10 msg per conn, 10 conns total, 2 max at a time)
|
connecting to port 12346 (10 msg per conn, 10 conns total, 2 max at a time)
|
||||||
|
connecting to port 12346 (10 msg per conn, 10 conns total, 2 max at a time)
|
||||||
|
done
|
||||||
|
first run
|
||||||
|
read: hello 1
|
||||||
|
read: hello 1
|
||||||
|
read: hello 1
|
||||||
|
read: hello 1
|
||||||
|
read: hello 1
|
||||||
|
read: hello 1
|
||||||
|
read: hello 1
|
||||||
|
read: hello 1
|
||||||
|
read: hello 1
|
||||||
|
read: hello 1
|
||||||
read: hello 1
|
read: hello 1
|
||||||
read: hello 1
|
read: hello 1
|
||||||
read: hello 1
|
read: hello 1
|
||||||
|
|
@ -23,6 +37,26 @@ read: hello 10
|
||||||
read: hello 10
|
read: hello 10
|
||||||
read: hello 10
|
read: hello 10
|
||||||
read: hello 10
|
read: hello 10
|
||||||
|
read: hello 10
|
||||||
|
read: hello 10
|
||||||
|
read: hello 10
|
||||||
|
read: hello 10
|
||||||
|
read: hello 10
|
||||||
|
read: hello 10
|
||||||
|
read: hello 10
|
||||||
|
read: hello 10
|
||||||
|
read: hello 10
|
||||||
|
read: hello 10
|
||||||
|
read: hello 2
|
||||||
|
read: hello 2
|
||||||
|
read: hello 2
|
||||||
|
read: hello 2
|
||||||
|
read: hello 2
|
||||||
|
read: hello 2
|
||||||
|
read: hello 2
|
||||||
|
read: hello 2
|
||||||
|
read: hello 2
|
||||||
|
read: hello 2
|
||||||
read: hello 2
|
read: hello 2
|
||||||
read: hello 2
|
read: hello 2
|
||||||
read: hello 2
|
read: hello 2
|
||||||
|
|
@ -43,6 +77,26 @@ read: hello 3
|
||||||
read: hello 3
|
read: hello 3
|
||||||
read: hello 3
|
read: hello 3
|
||||||
read: hello 3
|
read: hello 3
|
||||||
|
read: hello 3
|
||||||
|
read: hello 3
|
||||||
|
read: hello 3
|
||||||
|
read: hello 3
|
||||||
|
read: hello 3
|
||||||
|
read: hello 3
|
||||||
|
read: hello 3
|
||||||
|
read: hello 3
|
||||||
|
read: hello 3
|
||||||
|
read: hello 3
|
||||||
|
read: hello 4
|
||||||
|
read: hello 4
|
||||||
|
read: hello 4
|
||||||
|
read: hello 4
|
||||||
|
read: hello 4
|
||||||
|
read: hello 4
|
||||||
|
read: hello 4
|
||||||
|
read: hello 4
|
||||||
|
read: hello 4
|
||||||
|
read: hello 4
|
||||||
read: hello 4
|
read: hello 4
|
||||||
read: hello 4
|
read: hello 4
|
||||||
read: hello 4
|
read: hello 4
|
||||||
|
|
@ -63,6 +117,26 @@ read: hello 5
|
||||||
read: hello 5
|
read: hello 5
|
||||||
read: hello 5
|
read: hello 5
|
||||||
read: hello 5
|
read: hello 5
|
||||||
|
read: hello 5
|
||||||
|
read: hello 5
|
||||||
|
read: hello 5
|
||||||
|
read: hello 5
|
||||||
|
read: hello 5
|
||||||
|
read: hello 5
|
||||||
|
read: hello 5
|
||||||
|
read: hello 5
|
||||||
|
read: hello 5
|
||||||
|
read: hello 5
|
||||||
|
read: hello 6
|
||||||
|
read: hello 6
|
||||||
|
read: hello 6
|
||||||
|
read: hello 6
|
||||||
|
read: hello 6
|
||||||
|
read: hello 6
|
||||||
|
read: hello 6
|
||||||
|
read: hello 6
|
||||||
|
read: hello 6
|
||||||
|
read: hello 6
|
||||||
read: hello 6
|
read: hello 6
|
||||||
read: hello 6
|
read: hello 6
|
||||||
read: hello 6
|
read: hello 6
|
||||||
|
|
@ -83,6 +157,26 @@ read: hello 7
|
||||||
read: hello 7
|
read: hello 7
|
||||||
read: hello 7
|
read: hello 7
|
||||||
read: hello 7
|
read: hello 7
|
||||||
|
read: hello 7
|
||||||
|
read: hello 7
|
||||||
|
read: hello 7
|
||||||
|
read: hello 7
|
||||||
|
read: hello 7
|
||||||
|
read: hello 7
|
||||||
|
read: hello 7
|
||||||
|
read: hello 7
|
||||||
|
read: hello 7
|
||||||
|
read: hello 7
|
||||||
|
read: hello 8
|
||||||
|
read: hello 8
|
||||||
|
read: hello 8
|
||||||
|
read: hello 8
|
||||||
|
read: hello 8
|
||||||
|
read: hello 8
|
||||||
|
read: hello 8
|
||||||
|
read: hello 8
|
||||||
|
read: hello 8
|
||||||
|
read: hello 8
|
||||||
read: hello 8
|
read: hello 8
|
||||||
read: hello 8
|
read: hello 8
|
||||||
read: hello 8
|
read: hello 8
|
||||||
|
|
@ -103,3 +197,14 @@ read: hello 9
|
||||||
read: hello 9
|
read: hello 9
|
||||||
read: hello 9
|
read: hello 9
|
||||||
read: hello 9
|
read: hello 9
|
||||||
|
read: hello 9
|
||||||
|
read: hello 9
|
||||||
|
read: hello 9
|
||||||
|
read: hello 9
|
||||||
|
read: hello 9
|
||||||
|
read: hello 9
|
||||||
|
read: hello 9
|
||||||
|
read: hello 9
|
||||||
|
read: hello 9
|
||||||
|
read: hello 9
|
||||||
|
second run
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue