test: fix tests to assert unxpected querystrring error

This commit is contained in:
Weihang Lo 2024-04-15 19:50:43 -04:00
parent 99b4a49530
commit eacdfd2917
No known key found for this signature in database
GPG Key ID: D7DBF189825E82E7
1 changed files with 4 additions and 4 deletions

View File

@ -641,12 +641,12 @@ mod tests {
ErrorKind::UnexpectedQueryString(_)
);
err!(
"registry+https://github.com/rust-lang/cargo#0.52.0?branch=dev",
ErrorKind::PartialVersion(_)
"registry+https://github.com/rust-lang/cargo?branch=dev#0.52.0",
ErrorKind::UnexpectedQueryString(_)
);
err!(
"sparse+https://github.com/rust-lang/cargo#0.52.0?branch=dev",
ErrorKind::PartialVersion(_)
"sparse+https://github.com/rust-lang/cargo?branch=dev#0.52.0",
ErrorKind::UnexpectedQueryString(_)
);
err!("@1.2.3", ErrorKind::NameValidation(_));
err!("registry+https://github.com", ErrorKind::NameValidation(_));