Skip to content

Commit

Permalink
illumos build
Browse files Browse the repository at this point in the history
  • Loading branch information
ahl committed May 23, 2024
1 parent 2724da8 commit 2bca9ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sled-agent/src/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5066,9 +5066,9 @@ mod test {
fn test_bootstrap_addr_to_techport_prefixes() {
let ba: Ipv6Addr = "fdb0:1122:3344:5566::".parse().unwrap();
let prefixes = ServiceManager::bootstrap_addr_to_techport_prefixes(&ba);
assert!(prefixes.iter().all(|p| p.net().prefix() == 64));
let prefix0 = prefixes[0].net().network();
let prefix1 = prefixes[1].net().network();
assert!(prefixes.iter().all(|p| p.net().width() == 64));
let prefix0 = prefixes[0].net().prefix();
let prefix1 = prefixes[1].net().prefix();
assert_eq!(prefix0.segments()[1..], ba.segments()[1..]);
assert_eq!(prefix1.segments()[1..], ba.segments()[1..]);
assert_eq!(prefix0.segments()[0], 0xfdb1);
Expand Down

0 comments on commit 2bca9ef

Please sign in to comment.