From e7fe4e582a92b34720ba32aa77625763bf87caf7 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Tue, 19 Sep 2023 18:30:25 -0700 Subject: [PATCH] Fix tests. --- nextgen/config/tests/toolchain_config_test.rs | 4 ++-- nextgen/config/tests/workspace_config_test.rs | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/nextgen/config/tests/toolchain_config_test.rs b/nextgen/config/tests/toolchain_config_test.rs index 12d22481ce4..47d0c634460 100644 --- a/nextgen/config/tests/toolchain_config_test.rs +++ b/nextgen/config/tests/toolchain_config_test.rs @@ -264,7 +264,7 @@ node: } #[test] - #[should_panic(expected = "not a valid semantic version")] + #[should_panic(expected = "unexpected end of input while parsing major version number")] fn validates_version() { test_load_config( FILENAME, @@ -765,7 +765,7 @@ rust: } #[test] - #[should_panic(expected = "not a valid semantic version")] + #[should_panic(expected = "unexpected end of input while parsing major version number")] fn validates_version() { test_load_config( FILENAME, diff --git a/nextgen/config/tests/workspace_config_test.rs b/nextgen/config/tests/workspace_config_test.rs index 98d48d574cc..2aadbcd513b 100644 --- a/nextgen/config/tests/workspace_config_test.rs +++ b/nextgen/config/tests/workspace_config_test.rs @@ -569,9 +569,7 @@ vcs: use super::*; #[test] - #[should_panic( - expected = "doesn't meet semantic version requirements: unexpected character '@' while parsing major version number" - )] + #[should_panic(expected = "unexpected character '@' while parsing major version number")] fn errors_on_invalid_req() { test_load_config(FILENAME, "versionConstraint: '@1.0.0'", |path| { WorkspaceConfig::load_from(path)