From 7bf0809122dd439cdfd232bdb4968de118cba921 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Fri, 17 Oct 2025 00:13:53 +0200 Subject: [PATCH] Fix test compilation after merge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update instance tests to use correct type names: - CreateInstanceOptions -> Options - InstanceStatus -> Status 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- pkg/instance/instance_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/instance/instance_test.go b/pkg/instance/instance_test.go index 3fb4226..7413b58 100644 --- a/pkg/instance/instance_test.go +++ b/pkg/instance/instance_test.go @@ -207,7 +207,7 @@ func TestSetOptions_PreservesNodes(t *testing.T) { } // Create instance with initial nodes - initialOptions := &instance.CreateInstanceOptions{ + initialOptions := &instance.Options{ BackendType: backends.BackendTypeLlamaCpp, Nodes: []string{"worker1"}, LlamaServerOptions: &llamacpp.LlamaServerOptions{ @@ -216,11 +216,11 @@ func TestSetOptions_PreservesNodes(t *testing.T) { }, } - mockOnStatusChange := func(oldStatus, newStatus instance.InstanceStatus) {} + mockOnStatusChange := func(oldStatus, newStatus instance.Status) {} inst := instance.NewInstance("test-instance", backendConfig, globalSettings, initialOptions, "main", mockOnStatusChange) // Try to update with different nodes - updatedOptions := &instance.CreateInstanceOptions{ + updatedOptions := &instance.Options{ BackendType: backends.BackendTypeLlamaCpp, Nodes: []string{"worker2"}, // Attempt to change node LlamaServerOptions: &llamacpp.LlamaServerOptions{ @@ -434,7 +434,7 @@ func TestUnmarshalJSON(t *testing.T) { } } -func TestCreateInstanceOptionsValidation(t *testing.T) { +func TestCreateOptionsValidation(t *testing.T) { tests := []struct { name string maxRestarts *int