Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lib_test/mirage for Mirage 3.x #110

Merged
merged 2 commits into from
Nov 25, 2017
Merged

Update lib_test/mirage for Mirage 3.x #110

merged 2 commits into from
Nov 25, 2017

Conversation

mneilsen
Copy link
Contributor

@mneilsen mneilsen commented Sep 6, 2017

https://mirage.io/wiki/mirage2-to-mirage3 was an incredible resource for
helping me update this test code. Tested against Mirage 3.0.5 and
ocaml-vchan 3.0.0.

https://mirage.io/wiki/mirage2-to-mirage3 was an incredible resource for
helping me update this test code.  Tested against Mirage 3.0.5 and
ocaml-vchan 3.0.0.
|`Eof -> C.log c "EOF"; OS.Time.sleep 5.
|`Error _ -> C.log c "ERR"; OS.Time.sleep 5.
|`Ok buf ->
| Ok `Eof -> OS.Time.sleep_ns (5.0 *. 1e9 |> Int64.of_float) >>= fun () -> C.log c "EOF"
Copy link
Member

@hannesm hannesm Sep 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you may be interested in the duration library - Duration.of_sec 5 does exactly that (and is much more readable) -- plus it doesn't use floating point "numbers" \o/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes! A wonderful recommendation. Thanks!

@yomimono
Copy link
Contributor

Thanks very much for this contribution (and the compliment on the porting guide), @mneilsen ! :)

@yomimono yomimono merged commit faeb862 into mirage:master Nov 25, 2017
avsm added a commit to avsm/opam-repository that referenced this pull request Dec 13, 2018
CHANGES:

* Modernise build for OCaml 4.04 and port to Dune (mirage/ocaml-vchan#120 @talex5 @avsm)
* Upgrade opam metadata files to 2.0 (mirage/ocaml-vchan#120 @avsm @talex5)
* Remove mli only module (mirage/ocaml-vchan#114 @rgrinberg @samoht)
* Fix deprecation warning on String.create (mirage/ocaml-vchan#112 @samoht)
* Make OCaml 4.04 the minimum version (mirage/ocaml-vchan#111 @cfcs @hannesm)
* Update test cases for Mirage 3 (mirage/ocaml-vchan#110 @mneilsen)
mseri pushed a commit to ocaml/opam-repository that referenced this pull request Dec 13, 2018
CHANGES:

* Modernise build for OCaml 4.04 and port to Dune (mirage/ocaml-vchan#120 @talex5 @avsm)
* Upgrade opam metadata files to 2.0 (mirage/ocaml-vchan#120 @avsm @talex5)
* Remove mli only module (mirage/ocaml-vchan#114 @rgrinberg @samoht)
* Fix deprecation warning on String.create (mirage/ocaml-vchan#112 @samoht)
* Make OCaml 4.04 the minimum version (mirage/ocaml-vchan#111 @cfcs @hannesm)
* Update test cases for Mirage 3 (mirage/ocaml-vchan#110 @mneilsen)
fdopen added a commit to fdopen/opam-repository-mingw that referenced this pull request Dec 18, 2018
CHANGES:

* Modernise build for OCaml 4.04 and port to Dune (mirage/ocaml-vchan#120 @talex5 @avsm)
* Upgrade opam metadata files to 2.0 (mirage/ocaml-vchan#120 @avsm @talex5)
* Remove mli only module (mirage/ocaml-vchan#114 @rgrinberg @samoht)
* Fix deprecation warning on String.create (mirage/ocaml-vchan#112 @samoht)
* Make OCaml 4.04 the minimum version (mirage/ocaml-vchan#111 @cfcs @hannesm)
* Update test cases for Mirage 3 (mirage/ocaml-vchan#110 @mneilsen)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants