Skip to content

Commit

Permalink
Fix flake in rack_set_initialized_with_many_nexus_services test
Browse files Browse the repository at this point in the history
  • Loading branch information
smklein committed Feb 20, 2023
1 parent 1637370 commit 5b9263f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions nexus/src/db/datastore/rack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -665,13 +665,25 @@ mod test {
observed_external_ips[&observed_nexus_services[0].external_ip_id]
.ip
.ip(),
IpAddr::V4(nexus_ip_start),
if let internal_params::ServiceKind::Nexus { external_address } =
services[0].kind
{
external_address
} else {
panic!("Unexpected service kind")
}
);
assert_eq!(
observed_external_ips[&observed_nexus_services[1].external_ip_id]
.ip
.ip(),
IpAddr::V4(nexus_ip_end),
if let internal_params::ServiceKind::Nexus { external_address } =
services[1].kind
{
external_address
} else {
panic!("Unexpected service kind")
}
);

// Furthermore, we should be able to see that this IP addresses have been
Expand Down

0 comments on commit 5b9263f

Please sign in to comment.