Files
LocalAI/core/services/nodes
mudler-agentandEttore Di Giacinto 840fa3cc00 test(nodes): give the DistributedBackendManager fixtures a system state (#12877)
The disable-backend-install switch (#12754) makes InstallBackend and
UpgradeBackend read d.systemState.DisableBackendInstall. The test
fixtures build the manager as a struct literal or through
NewDistributedBackendManager with an empty ApplicationConfig, so
systemState is nil and every install and upgrade spec panics with a nil
pointer dereference.

Set a zero-value SystemState in each fixture. That keeps installs
allowed, which is what these specs expect.

Assisted-by: Claude Code:claude-haiku-5-5

Co-authored-by: Ettore Di Giacinto <mudler@localai.io>
2026-10-24 15:34:21 +02:00
..