diff options
Diffstat (limited to 'tests/cli.rs')
| -rw-r--r-- | tests/cli.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/cli.rs b/tests/cli.rs index e99e876..2903f61 100644 --- a/tests/cli.rs +++ b/tests/cli.rs | |||
| @@ -57,6 +57,9 @@ fn test_run_creates_files() { | |||
| 57 | assert!(temp_dir.path().join("test.stdout").exists()); | 57 | assert!(temp_dir.path().join("test.stdout").exists()); |
| 58 | assert!(temp_dir.path().join("test.stderr").exists()); | 58 | assert!(temp_dir.path().join("test.stderr").exists()); |
| 59 | 59 | ||
| 60 | // Give the process a moment to complete | ||
| 61 | std::thread::sleep(Duration::from_millis(100)); | ||
| 62 | |||
| 60 | // Check that stdout contains our output | 63 | // Check that stdout contains our output |
| 61 | let stdout_content = fs::read_to_string(temp_dir.path().join("test.stdout")).unwrap(); | 64 | let stdout_content = fs::read_to_string(temp_dir.path().join("test.stdout")).unwrap(); |
| 62 | assert_eq!(stdout_content.trim(), "hello"); | 65 | assert_eq!(stdout_content.trim(), "hello"); |
