test-fix: test_commit() & test_read()

This commit is contained in:
mrbeanc
2023-12-23 10:40:11 +08:00
parent fd7a2e38a7
commit f8da30b7d8
2 changed files with 7 additions and 6 deletions

View File

@@ -26,6 +26,7 @@ fn test_write() -> Result<(), Error> {
fn test_read() -> Result<(), Error> {
util::setup_test_with_mit();
let path = "lines.txt";
util::ensure_test_file(path.as_ref(), None);
let input = File::open(path)?;
let buffered = BufReader::new(input);