Skip to content

Commit a9561cd

Browse files
committed
Fix wrong assertion in gix-url baseline test
This change does not affect the number of passing tests, because all tests that were affected by this wrong assertion now fail for some other reason.
1 parent 50d521d commit a9561cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gix-url/tests/baseline/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn assert_urls_equal(expected: &baseline::GitDiagUrl<'_>, actual: &gix_url::Url)
6262

6363
match expected.host {
6464
baseline::GitDiagHost::NonSsh { host_and_port } => match host_and_port {
65-
Some(host_and_port) => {
65+
Some(host_and_port) if !host_and_port.is_empty() => {
6666
assert!(actual.host().is_some());
6767

6868
let mut gix_host_and_port = String::with_capacity(host_and_port.len());
@@ -81,7 +81,7 @@ fn assert_urls_equal(expected: &baseline::GitDiagUrl<'_>, actual: &gix_url::Url)
8181

8282
assert_eq!(host_and_port, gix_host_and_port);
8383
}
84-
None => {
84+
_ => {
8585
assert!(actual.host().is_none());
8686
assert!(actual.port.is_none());
8787
}

0 commit comments

Comments
 (0)