Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Jun 26, 2024
1 parent c3cc6f7 commit cfe494d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fn config_invalid_error_message() {
fs::write(&config, "foo").unwrap();

CommandBuilder::new(format!("--config {} settings", config.to_str().unwrap()))
.stderr_regex("error: failed to deserialize config file `.*ord.yaml`\nbecause:.*")
.stderr_regex("error: failed to deserialize config file `.*ord.yaml`\n\nbecause:.*")
.expected_exit_code(1)
.run_and_extract_stdout();
}
Expand All @@ -77,7 +77,7 @@ fn config_not_found_error_message() {
let config = tempdir.path().join("ord.yaml");

CommandBuilder::new(format!("--config {} settings", config.to_str().unwrap()))
.stderr_regex("error: failed to open config file `.*ord.yaml`\nbecause:.*")
.stderr_regex("error: failed to open config file `.*ord.yaml`\n\nbecause:.*")
.expected_exit_code(1)
.run_and_extract_stdout();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/wallet/sats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ fn sats_from_tsv_file_not_found() {
.core(&core)
.ord(&ord)
.expected_exit_code(1)
.stderr_regex("error: I/O error reading `.*`\nbecause: .*\n")
.stderr_regex("error: I/O error reading `.*`\n\nbecause:.*")
.run_and_extract_stdout();
}

0 comments on commit cfe494d

Please sign in to comment.