Skip to content

Commit

Permalink
test(connlib): generate up to 6 resolved IPs (#5218)
Browse files Browse the repository at this point in the history
With #5049, we will allocate a fixed set of 4 IPs per DNS resource on
the client. In order to ensure that this always works correctly,
increase the number of resolved IPs to at most 6.
  • Loading branch information
thomaseizinger committed Jun 5, 2024
1 parent f644d73 commit fb97e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/connlib/tunnel/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2143,7 +2143,7 @@ fn icmp_to_resolved_non_resource() -> impl Strategy<Value = Transition> {
}

fn resolved_ips() -> impl Strategy<Value = HashSet<IpAddr>> {
collection::hash_set(any::<IpAddr>(), 1..4)
collection::hash_set(any::<IpAddr>(), 1..6)
}

fn non_wildcard_dns_resource() -> impl Strategy<Value = Transition> {
Expand Down

0 comments on commit fb97e3c

Please sign in to comment.