Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 3 additions & 1 deletion agent/tests/filesys/cached_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ pub mod new_with_default {
.unwrap();

// ensure the contents is correct
let cached_file = SingleThreadTokenFile::new(file).await.unwrap();
let cached_file = SingleThreadTokenFile::new_with_default(file, Token::default())
.await
.unwrap();
assert_eq!(cached_file.read().await.as_ref(), &token);
}
}
Expand Down
2 changes: 1 addition & 1 deletion agent/tests/filesys/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ pub mod move_to {

// overwrite true
assert!(matches!(
file.move_to(&file, Overwrite::Deny).await.unwrap_err(),
file.move_to(&file, Overwrite::Allow).await.unwrap_err(),
FileSysErr::PathDoesNotExistErr { .. }
));
}
Expand Down