(&self, path: &Path)
| 89 | } |
| 90 | |
| 91 | fn read(&self, path: &Path) -> std::io::Result<Vec<u8>> { |
| 92 | if path == self.delayed_path { |
| 93 | std::thread::sleep(std::time::Duration::from_millis(self.delay_ms)); |
| 94 | } |
| 95 | self.fs.read(path) |
| 96 | } |
| 97 | |
| 98 | fn read_to_string(&self, path: &Path) -> std::io::Result<String> { |
| 99 | if path == self.delayed_path { |