Skip to content

Commit

Permalink
Fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim committed Jun 11, 2024
1 parent 7f2b2b6 commit 2c2a037
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_plugin/tests/test_asset_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fn loads_asset_from_base_language_localization() -> Result<()> {
assert_eq!(1, assets.len());
let asset: Handle<AudioSource> = assets.get_handle().unwrap();
let asset_server = app.world().resource::<AssetServer>();
let path = asset_server.get_path(asset).unwrap();
let path = asset_server.get_path(asset.id()).unwrap();

// Note that this does not contain backslashes on Windows
assert_eq!("dialogue/en-US/9.ogg", path.path().to_str().unwrap());
Expand Down Expand Up @@ -132,7 +132,7 @@ fn loads_asset_from_translated_localization() -> Result<()> {
assert_eq!(1, assets.len());
let asset: Handle<AudioSource> = assets.get_handle().unwrap();
let asset_server = app.world().resource::<AssetServer>();
let path = asset_server.get_path(asset).unwrap();
let path = asset_server.get_path(asset.id()).unwrap();

// Note that this does not contains backslashes on Windows
assert_eq!("dialogue/de-CH/10.ogg", path.path().to_str().unwrap());
Expand Down

0 comments on commit 2c2a037

Please sign in to comment.