From c85b80364dffbd5740fbc7f23a047fcf15e0605a Mon Sep 17 00:00:00 2001 From: brianheineman Date: Sun, 4 Aug 2024 12:01:08 -0600 Subject: [PATCH] test: improve matcher error tests --- postgresql_extensions/src/matcher.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/postgresql_extensions/src/matcher.rs b/postgresql_extensions/src/matcher.rs index 32c8be0..3762190 100644 --- a/postgresql_extensions/src/matcher.rs +++ b/postgresql_extensions/src/matcher.rs @@ -213,11 +213,12 @@ mod tests { let os = consts::OS; let arch = consts::ARCH; let names = vec![ - format!("foo{target}.tar.gz"), - format!("foo{os}-{arch}.tar.gz"), - format!("foo-{target}.tar"), - format!("foo-{os}-{arch}.tar"), - format!("foo-{os}{arch}.tar.gz"), + format!("foo-pg{postgresql_major_version}.tar.gz"), + format!("foo-{target}.tar.gz"), + format!("foo-pg{postgresql_major_version}-{os}.tar.gz"), + format!("foo-pg{postgresql_major_version}-{arch}.tar.gz"), + format!("foo-pg{postgresql_major_version}{os}-{arch}.tar"), + format!("foo-pg{postgresql_major_version}-{os}{arch}.tar.gz"), ]; for name in names {