newt.rs: changed new_mock output file to allow writes

This commit is contained in:
litlep-nibbyt 2024-06-13 11:20:06 -04:00 committed by Edward Amsden
parent defff0f798
commit a6c008d1d8

View File

@ -78,7 +78,11 @@ impl Newt {
pub fn new_mock() -> Newt {
Newt {
input: std::fs::File::open("/dev/null").expect("newt: could not open /dev/null"),
output: std::fs::File::open("/dev/null").expect("newt: could not open /dev/null"),
//output: std::fs::File::open("/dev/null").expect("newt: could not open /dev/null"),
output: std::fs::File::options()
.read(true)
.write(true)
.open("/dev/null").expect("newt: could not open /dev/null")
}
}