[GH-ISSUE #5364] lan_bot: 8 of 14 tests fail on main (packets never handled by Hub::tick) #1648

Closed
opened 2026-11-02 15:48:38 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ludovic111 on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5364

Originally assigned to: @ludovic111 on GitHub.

🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself.

On main (d6e8bd67a), cargo test -p horizon-client --test lan_bot fails 8 of 14 tests (status_and_join, sprint_commands_survive_keyboard_input_changes, the move-ordering tests ...). #4787 moved the players' packets into Hub::drain_packets, which the game calls, but Hub::tick (the whole-tick helper the test server uses) still runs only poll and tick_level, so the tests' packets are never handled. With that fixed, guests_see_each_other_and_the_world_entities still fails: its bots never send ClientTickEnd, so a second move in a client tick is kicked (invalid_player_movement), as for a real client that skipped it.

Originally created by @ludovic111 on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5364 Originally assigned to: @ludovic111 on GitHub. > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself. On main (d6e8bd67a), `cargo test -p horizon-client --test lan_bot` fails 8 of 14 tests (status_and_join, sprint_commands_survive_keyboard_input_changes, the move-ordering tests ...). #4787 moved the players' packets into `Hub::drain_packets`, which the game calls, but `Hub::tick` (the whole-tick helper the test server uses) still runs only `poll` and `tick_level`, so the tests' packets are never handled. With that fixed, `guests_see_each_other_and_the_world_entities` still fails: its bots never send `ClientTickEnd`, so a second move in a client tick is kicked (`invalid_player_movement`), as for a real client that skipped it.
bsakaguchi 2026-11-02 15:48:38 +07:00
Author
Owner

@ludovic111 commented on GitHub (Oct 31, 2026):

/claim

<!-- gh-comment-id:6547317721 --> @ludovic111 commented on GitHub (Oct 31, 2026): /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1648
No description provided.