Skip to content

Commit

Permalink
changes for 6.0.0
Browse files Browse the repository at this point in the history
test: adapt test to dns-client changes (EDNS tcp keepalive)
  • Loading branch information
robur-team committed Oct 19, 2021
1 parent 33dee76 commit aa8b8dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
### v6.0.0 (2021-10-18)
### v6.0.0 (2021-10-19)

* use Cstruct.length instead of deprecated Cstruct.len
* avoid deprecated fmt functions

* dns-client: send EDNS tcp keepalive with a timeout of 120 seconds if TCP
is used (@reynir @hannesm)
* BREAKING dns: Rr_map.get_ttl is now ttl, and takes 'a key -> 'a -> int32
(instead of b -> int32), Rr_map.with_ttl now is 'a key -> 'a -> int32 -> 'a
(instead of b -> int32 -> b) (#264 @hannesm)
Expand Down
5 changes: 3 additions & 2 deletions test/client.ml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ module Make_query_tests = struct
let name:'a Domain_name.t = Domain_name.of_string_exn "example.com" in
let actual, _state = Dns_client.Pure.make_query rng `Tcp name Dns.Rr_map.A in
let expected = Cstruct.of_hex
"00 1d 00 00 01 00 00 01 00 00 00 00 00 00 07 65
78 61 6d 70 6c 65 03 63 6f 6d 00 00 01 00 01" in
"00 2e 00 00 01 00 00 01 00 00 00 00 00 01 07 65
78 61 6d 70 6c 65 03 63 6f 6d 00 00 01 00 01 00
00 29 02 00 00 00 00 00 00 06 00 0b 00 02 04 b0" in
Alcotest.check p_cs "produces cool stuff" expected actual

let tests = [
Expand Down

0 comments on commit aa8b8dc

Please sign in to comment.