Skip to content

Commit

Permalink
Fix ignored tests from update to bevy 0.15 (#666)
Browse files Browse the repository at this point in the history
  • Loading branch information
CosterM authored Dec 10, 2024
1 parent d40715f commit daba5d9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/buttonlike.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn test_app() -> App {
app.insert_resource(input_map)
.init_resource::<ActionState<TestAction>>();

let gamepad = app.world_mut().spawn_empty().id();
let gamepad = app.world_mut().spawn(Gamepad::default()).id();
let mut gamepad_events: Mut<'_, Events<GamepadEvent>> =
app.world_mut().resource_mut::<Events<GamepadEvent>>();
gamepad_events.send(GamepadEvent::Connection(GamepadConnectionEvent {
Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit daba5d9

Please sign in to comment.