Skip to content

Commit

Permalink
Update mountpoint-s3/tests/fuse_tests/write_test.rs
Browse files Browse the repository at this point in the history
Co-authored-by: James Bornholt <jamesbornholt@gmail.com>
Signed-off-by: Monthon Klongklaew <monthonk@amazon.com>
  • Loading branch information
monthonk and jamesbornholt committed Jul 14, 2023
1 parent eb11003 commit 99d6ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mountpoint-s3/tests/fuse_tests/write_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ where
.expect_err("writing to O_RDONLY file should fail");
assert_eq!(err.raw_os_error(), Some(libc::EBADF));

// We can't write to an existing file even it's opened in O_RDWR
// Existing files can be opened O_RDWR but only reading should work on them
let mut file = File::options().read(true).write(true).create(true).open(&path).unwrap();
let err = file
.write(b"hello world")
Expand Down

0 comments on commit 99d6ed7

Please sign in to comment.