fix(hero_os_server): desktop tests compile (#36) #38

Merged
timur merged 1 commit from 36-fix-desktop-tests into development 2026-04-15 11:51:50 +00:00
Owner

One-line fix surfaced while verifying #37. crates/hero_os_server/src/desktop/tests.rs:12 imports super::server::*, but there is no server submodule under desktop/. The types it uses (OsisDesktop, desktopstate_*, windowstate_*) live in osis_server_generated, which mod.rs already re-exports, so use super::*; is the correct import.

Verification

cargo test -p hero_os_server
...
running 3 tests
test desktop::tests::test_desktop_state_crud ... ok
test desktop::tests::test_window_state_crud ... ok
test desktop::tests::test_desktop_all_objects ... ok
test result: ok. 3 passed; 0 failed

Unblocks cargo test --workspace on development.

Refs #36.

🤖 Generated with Claude Code

One-line fix surfaced while verifying #37. `crates/hero_os_server/src/desktop/tests.rs:12` imports `super::server::*`, but there is no `server` submodule under `desktop/`. The types it uses (`OsisDesktop`, `desktopstate_*`, `windowstate_*`) live in `osis_server_generated`, which `mod.rs` already re-exports, so `use super::*;` is the correct import. ## Verification ``` cargo test -p hero_os_server ... running 3 tests test desktop::tests::test_desktop_state_crud ... ok test desktop::tests::test_window_state_crud ... ok test desktop::tests::test_desktop_all_objects ... ok test result: ok. 3 passed; 0 failed ``` Unblocks `cargo test --workspace` on development. Refs #36. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(hero_os_server): use correct module path in desktop tests
Some checks failed
Build and Test / test (pull_request) Failing after 33s
81b9b386dc
tests.rs imported `super::server::*` but there is no `server` submodule
under `desktop/`. `OsisDesktop` and the `*state_*` methods are defined
in `osis_server_generated`, which `mod.rs` already re-exports, so
`super::*` is the right import.

Unblocks `cargo test --workspace` on development.

Refs #36.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
timur merged commit afda24016e into development 2026-04-15 11:51:50 +00:00
Sign in to join this conversation.
No reviewers
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
lhumina_code/hero_os!38
No description provided.