Skip to content

Commit

Permalink
+= brooks' comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yhchiang-sol committed Mar 14, 2024
1 parent 0c298f5 commit 0c7cf9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions accounts-db/src/tiered_storage/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ mod tests {

fn generate_test_file_with_number(path: impl AsRef<Path>, number: u64) {
// Generate a new temp path that is guaranteed to NOT already have a file.
let file = TieredStorageFile::new_writable(&path).unwrap();
let file = TieredStorageFile::new_writable(path).unwrap();
file.write_pod(&number).unwrap();
}

#[test]
fn test_magic_number() {
fn test_check_magic_number() {
let temp_dir = TempDir::new().unwrap();
let path = temp_dir.path().join("test_check_magic_number");
generate_test_file_with_number(&path, FILE_MAGIC_NUMBER);
Expand All @@ -163,7 +163,7 @@ mod tests {
.open(&path)
.unwrap(),
);
assert!(matches!(file.check_magic_number(), Ok(())));
assert!(file.check_magic_number().is_ok());
}

#[test]
Expand Down

0 comments on commit 0c7cf9c

Please sign in to comment.