Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/pass-dep/tokio/file-io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ async fn test_create_and_write() -> io::Result<()> {

// Write 10 bytes to the file.
file.write_all(b"some bytes").await?;
file.sync_all().await?; // tokio doesn't necessarily complete writes until you sync.
assert_eq!(file.metadata().await.unwrap().len(), 10);

remove_file(&path).unwrap();
Expand Down