From 4f705bb3f08575e869e3cc40c4fe9ce1a73b3953 Mon Sep 17 00:00:00 2001 From: Coster Date: Tue, 10 Dec 2024 13:44:22 +0000 Subject: [PATCH] Fix ignored tests from update to bevy 0.15 --- tests/buttonlike.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/buttonlike.rs b/tests/buttonlike.rs index 0e4ee018..dc2dc01f 100644 --- a/tests/buttonlike.rs +++ b/tests/buttonlike.rs @@ -34,7 +34,7 @@ fn test_app() -> App { app.insert_resource(input_map) .init_resource::>(); - let gamepad = app.world_mut().spawn_empty().id(); + let gamepad = app.world_mut().spawn(Gamepad::default()).id(); let mut gamepad_events: Mut<'_, Events> = app.world_mut().resource_mut::>(); gamepad_events.send(GamepadEvent::Connection(GamepadConnectionEvent { @@ -86,8 +86,6 @@ fn set_keyboard_updates_central_input_store() { } #[test] -// FIXME: Should be fixed in a follow-up PR and the ignore should be removed -#[ignore = "Ignoring as per https://github.com/Leafwing-Studios/leafwing-input-manager/pull/664#issuecomment-2529188830"] fn gamepad_button_value() { let mut app = test_app(); @@ -186,8 +184,6 @@ fn buttonlike_actions_can_be_pressed_and_released_when_pressed() { } #[test] -// FIXME: Should be fixed in a follow-up PR and the ignore should be removed -#[ignore = "Ignoring as per https://github.com/Leafwing-Studios/leafwing-input-manager/pull/664#issuecomment-2529188830"] fn buttonlike_actions_can_be_pressed_and_released_when_button_value_set() { let mut app = test_app();