Mining/pkg
google-labs-jules[bot] 48c4bbeab8 Fix backend and frontend tests after major refactoring and fix data race
- Fix `MockManager` in `pkg/mining/service_test.go` to implement `UninstallMiner`.
- Fix `XMRigMiner` struct literals in tests to use embedded `BaseMiner`.
- Update `XMRigSummary` struct usage and fix history method calls in `pkg/mining/xmrig_test.go`.
- Isolate `xdg` configuration in `pkg/mining/manager_test.go` and clean up miner state to fix leakage.
- Fix `TestStartMiner_Ugly` logic by using `Algo` for deterministic naming.
- Add `pkg/mining/profile_manager_test.go` to cover `ProfileManager`.
- Remove obsolete `TestHandleStartMiner` in `pkg/mining/service_test.go`.
- Fix UI test compilation by updating component import to `SniderMining` and mocking `MinerService` with signals.
- Fix data race in `TestXMRigMiner_Start_Stop_Good` by locking mutex when checking `Running` state and adding delay to dummy script.
2025-12-11 17:57:21 +00:00
..
mining Fix backend and frontend tests after major refactoring and fix data race 2025-12-11 17:57:21 +00:00