Skip to content

Commit

Permalink
test: fix tests to assert unxpected querystrring error
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed Apr 16, 2024
1 parent 99b4a49 commit eacdfd2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/cargo-util-schemas/src/core/package_id_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(_));
Expand Down

0 comments on commit eacdfd2

Please sign in to comment.