Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
beac0n committed Aug 12, 2024
1 parent 9e3f6b9 commit 5fe00c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
11 changes: 2 additions & 9 deletions tests/commander_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,8 @@ mod tests {
let result = Commander::create_from_path(path);

assert!(result.is_err());
assert_eq!(
result.err().unwrap(),
r#"Could not create TOML from "/home/beac0n/dev/beac0n/ruroco/tests/config_invalid.toml": TOML parse error at line 1, column 1
|
1 | foo = "bar"
| ^^^^^^^^^^^
missing field `commands`
"#
);

assert!(result.err().unwrap().contains("TOML parse error at line 1, column 1"));
}

#[test]
Expand Down
10 changes: 1 addition & 9 deletions tests/server_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,7 @@ mod tests {
let result = Server::create_from_path(path);

assert!(result.is_err());
assert_eq!(
result.err().unwrap(),
r#"Could not create TOML from "/home/beac0n/dev/beac0n/ruroco/tests/config_invalid.toml": TOML parse error at line 1, column 1
|
1 | foo = "bar"
| ^^^^^^^^^^^
missing field `commands`
"#
);
assert!(result.err().unwrap().contains("TOML parse error at line 1, column 1"));
}

#[test]
Expand Down

0 comments on commit 5fe00c2

Please sign in to comment.