Refactor configuration structure to replace DataConfig with instance-specific directories and auto-creation options

This commit is contained in:
2025-08-02 19:10:40 +02:00
parent 7935f19cc1
commit dd6ffa548c
6 changed files with 53 additions and 51 deletions

View File

@@ -10,7 +10,7 @@ import (
func TestNewInstanceManager(t *testing.T) {
config := llamactl.InstancesConfig{
PortRange: [2]int{8000, 9000},
LogDirectory: "/tmp/test",
LogDir: "/tmp/test",
MaxInstances: 5,
LlamaExecutable: "llama-server",
DefaultAutoRestart: true,
@@ -490,7 +490,7 @@ func TestUpdateInstance_NotFound(t *testing.T) {
func createTestManager() llamactl.InstanceManager {
config := llamactl.InstancesConfig{
PortRange: [2]int{8000, 9000},
LogDirectory: "/tmp/test",
LogDir: "/tmp/test",
MaxInstances: 10,
LlamaExecutable: "llama-server",
DefaultAutoRestart: true,