Skip to content

Commit 1e374ac

Browse files
fix: run cli tests with deterministic log level (#586)
1 parent 1abf019 commit 1e374ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/pgls_cli/tests/assert_check.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ fn check_stdin_snapshot() {
6565
"--config-path",
6666
CONFIG_PATH,
6767
"--stdin-file-path",
68-
"virtual.sql"
68+
"virtual.sql",
69+
"--log-level",
70+
"none"
6971
],
7072
Some("alter tqjable stdin drop column id;\n"),
7173
None
@@ -87,7 +89,7 @@ fn check_directory_traversal_snapshot() {
8789
}
8890

8991
fn run_check(args: &[&str]) -> String {
90-
let mut full_args = vec!["--config-path", CONFIG_PATH];
92+
let mut full_args = vec!["--config-path", CONFIG_PATH, "--log-level", "none"];
9193
full_args.extend_from_slice(args);
9294
run_check_with(&full_args, None, None)
9395
}

0 commit comments

Comments
 (0)