Skip to content

Commit eacdfd2

Browse files
committed
test: fix tests to assert unxpected querystrring error
1 parent 99b4a49 commit eacdfd2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/cargo-util-schemas/src/core/package_id_spec.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -641,12 +641,12 @@ mod tests {
641641
ErrorKind::UnexpectedQueryString(_)
642642
);
643643
err!(
644-
"registry+https://github.com/rust-lang/cargo#0.52.0?branch=dev",
645-
ErrorKind::PartialVersion(_)
644+
"registry+https://github.com/rust-lang/cargo?branch=dev#0.52.0",
645+
ErrorKind::UnexpectedQueryString(_)
646646
);
647647
err!(
648-
"sparse+https://github.com/rust-lang/cargo#0.52.0?branch=dev",
649-
ErrorKind::PartialVersion(_)
648+
"sparse+https://github.com/rust-lang/cargo?branch=dev#0.52.0",
649+
ErrorKind::UnexpectedQueryString(_)
650650
);
651651
err!("@1.2.3", ErrorKind::NameValidation(_));
652652
err!("registry+https://github.com", ErrorKind::NameValidation(_));

0 commit comments

Comments
 (0)