test_linkspecs: tidy order of linkspecs

This is pure code movement.
This commit is contained in:
Nick Mathewson 2023-05-09 10:51:27 -04:00
parent e919ade062
commit d26da331be
1 changed files with 11 additions and 11 deletions

View File

@ -387,15 +387,8 @@ mod test {
use crate::ls::LinkSpec;
assert_eq!(
specs[2],
LinkSpec::Ed25519Id(
pk::ed25519::PublicKey::from_bytes(&hex!(
"fc51cd8e6218a1a38da47ed00230f058
0816ed13ba3303ac5deb911548908025"
))
.unwrap()
.into()
)
specs[0],
LinkSpec::OrPort("127.0.0.1".parse::<IpAddr>().unwrap(), 99)
);
assert_eq!(
specs[1],
@ -405,8 +398,15 @@ mod test {
)
);
assert_eq!(
specs[0],
LinkSpec::OrPort("127.0.0.1".parse::<IpAddr>().unwrap(), 99)
specs[2],
LinkSpec::Ed25519Id(
pk::ed25519::PublicKey::from_bytes(&hex!(
"fc51cd8e6218a1a38da47ed00230f058
0816ed13ba3303ac5deb911548908025"
))
.unwrap()
.into()
)
);
assert_eq!(
specs[3],