Skip to content

Commit

Permalink
Fix test compilation
Browse files Browse the repository at this point in the history
Reason/Description: 
Files: volume.rs
  • Loading branch information
Murmele committed Jan 6, 2025
1 parent 1b45774 commit 2ac66e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/volume.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fn open_all_volumes() {
Err(embedded_sdmmc::Error::VolumeAlreadyOpen)
));

volume_mgr.close_volume(fat16_volume).expect("close fat16");
tokio_test::block_on(volume_mgr.close_volume(fat16_volume)).expect("close fat16");

// Open Volume 1
let fat32_volume =
Expand All @@ -51,8 +51,8 @@ fn open_all_volumes() {
Err(embedded_sdmmc::Error::TooManyOpenVolumes)
));

volume_mgr.close_volume(fat16_volume).expect("close fat16");
volume_mgr.close_volume(fat32_volume).expect("close fat32");
tokio_test::block_on(volume_mgr.close_volume(fat16_volume)).expect("close fat16");
tokio_test::block_on(volume_mgr.close_volume(fat32_volume)).expect("close fat32");

// This isn't a valid volume
assert!(matches!(
Expand All @@ -69,7 +69,7 @@ fn open_all_volumes() {
let _root_dir = volume_mgr.open_root_dir(fat32_volume).expect("Open dir");

assert!(matches!(
volume_mgr.close_volume(fat32_volume),
tokio_test::block_on(volume_mgr.close_volume(fat32_volume)),
Err(embedded_sdmmc::Error::VolumeStillInUse)
));
}
Expand Down

0 comments on commit 2ac66e1

Please sign in to comment.