mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 06:30:08 +02:00
refactor all write_alls to ensure flushing (#5567)
This commit is contained in:
@ -68,7 +68,8 @@ fn save_append_will_not_overwrite_content() {
|
||||
let mut file =
|
||||
std::fs::File::create(&expected_file).expect("Failed to create test file");
|
||||
file.write_all("hello ".as_bytes())
|
||||
.expect("Failed to write to test file")
|
||||
.expect("Failed to write to test file");
|
||||
file.flush().expect("Failed to flush io")
|
||||
}
|
||||
|
||||
nu!(
|
||||
|
Reference in New Issue
Block a user