Skip to content

Commit 68f20e9

Browse files
committed
Fixed Github Workflow
1 parent 04b9c30 commit 68f20e9

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

src/tests.rs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,13 @@ fn test_bevy_plugin() {
4343

4444
let bytebox = crate::byte_box::ByteBox::new("some_location").expect("failed to create bytebox");
4545

46-
fn fetch_box(bytebox: Res<crate::byte_box::ByteBox>) {
47-
assert_eq!(
48-
bytebox
49-
.path()
50-
.canonicalize()
51-
.expect("failed to canonicalize bytebox path"),
52-
std::env::current_dir()
53-
.expect("failed to get current dir")
54-
.join("some_location")
55-
.canonicalize()
56-
.expect("failed to canonicalize path")
57-
);
46+
fn do_stuff(bytebox: Res<crate::byte_box::ByteBox>) {
47+
bytebox.delete();
5848
}
5949

6050
App::new()
6151
.add_plugins((crate::bevy::ByteboxPlugin::new().with(bytebox),))
62-
.add_systems(Startup, fetch_box)
52+
.add_systems(Startup, do_stuff)
6353
.set_runner(|mut app| {
6454
app.update();
6555
app.cleanup();

0 commit comments

Comments
 (0)