From eacdfd2917ee851d861c19072a1c32772aee2652 Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Mon, 15 Apr 2024 19:50:43 -0400 Subject: [PATCH] test: fix tests to assert unxpected querystrring error --- crates/cargo-util-schemas/src/core/package_id_spec.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/cargo-util-schemas/src/core/package_id_spec.rs b/crates/cargo-util-schemas/src/core/package_id_spec.rs index 18e1e8211..72d72149e 100644 --- a/crates/cargo-util-schemas/src/core/package_id_spec.rs +++ b/crates/cargo-util-schemas/src/core/package_id_spec.rs @@ -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(_));