mirror of
https://github.com/urbit/ares.git
synced 2024-12-22 21:01:29 +03:00
newt.rs: changed new_mock output file to allow writes
This commit is contained in:
parent
defff0f798
commit
a6c008d1d8
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user