Skip to content

Commit 52457c4

Browse files
committed
Fix compiler error and tests creating log files
1 parent f321faa commit 52457c4

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/commands/test.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ fn print_result_test(
4242
) -> anyhow::Result<bool> {
4343
io.println("", PrintColor::Normal)?;
4444
io.println(&format!("Testing: {exercise_name}"), PrintColor::Normal)?;
45-
io.flush()?;
4645

4746
let mut tests_passed = 0;
4847
let mut tests_total = 0;

tests/command_line_test.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const PKG_NAME: &str = env!("CARGO_PKG_NAME");
66

77
#[test]
88
fn command_help() -> Result<(), Box<dyn std::error::Error>> {
9-
let mut envs = HashMap::new();
10-
envs.insert("RUST_LOG", "debug".to_string());
9+
let envs = HashMap::new();
10+
// envs.insert("RUST_LOG", "debug".to_string());
1111

1212
let mut cmd = command(&envs);
1313
cmd.arg("--help");
@@ -20,8 +20,8 @@ fn command_help() -> Result<(), Box<dyn std::error::Error>> {
2020

2121
#[test]
2222
fn command_wrong_argument_help() -> Result<(), Box<dyn std::error::Error>> {
23-
let mut envs = HashMap::new();
24-
envs.insert("RUST_LOG", "debug".to_string());
23+
let envs = HashMap::new();
24+
// envs.insert("RUST_LOG", "debug".to_string());
2525

2626
let mut cmd = command(&envs);
2727
cmd.arg("--wrong_argument");
@@ -71,7 +71,7 @@ fn all_integration_tests() -> Result<(), Box<dyn std::error::Error>> {
7171
config_dir.path().as_os_str().to_str().unwrap().to_string(),
7272
);
7373
envs.insert("TMC_LANGS_ROOT_URL", server.url());
74-
envs.insert("RUST_LOG", "debug".to_string());
74+
// envs.insert("RUST_LOG", "debug".to_string());
7575

7676
// logout
7777
let mut cmd = command(&envs);

0 commit comments

Comments
 (0)