Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Sep 20, 2023
1 parent cd714e3 commit e7fe4e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions nextgen/config/tests/toolchain_config_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 1 addition & 3 deletions nextgen/config/tests/workspace_config_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e7fe4e5

Please sign in to comment.