Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ignored tests from update to bevy 0.15 #666

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading