Mining/pkg
google-labs-jules[bot] 7123896669 Fix backend tests panic and race condition
- Fix `TestStopMiner_Good` and `TestGetMiner_Good` in `pkg/mining/manager_test.go` to check `StartMiner` error, preventing panic on nil pointer access.
- Fix data race in `TestXMRigMiner_Start_Stop_Good` in `pkg/mining/xmrig_test.go` by protecting `Running` state access with mutex and adding delay to dummy script.
- Fix `TestStartMiner_Ugly` by ensuring deterministic naming with `Algo`.
- Fix state leakage in `manager_test.go` by clearing miners and isolating `xdg` config.
- Fix UI test compilation by updating imports and mocks.
2025-12-11 20:52:24 +00:00
..
mining Fix backend tests panic and race condition 2025-12-11 20:52:24 +00:00