From c9ac73e08268f02cf65472066439eb616863a5cf Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Fri, 9 Jan 2026 13:14:29 +0100 Subject: [PATCH] fix: correct integration test to use proper function and type names - Use client.NewClientFromHost instead of non-existent client.New - Use models.DeviceInfo instead of non-existent models.Info - Use discovery.UnifiedDiscoveryService instead of non-existent discovery.Scanner - Use config.DefaultConfig instead of non-existent config.NewConfig - Add config package import for discovery service creation This fixes the integration test failure where undefined symbols were being referenced. --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa00db9..937163a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -193,20 +193,22 @@ jobs: "github.com/user_account/bose-soundtouch/pkg/client" "github.com/user_account/bose-soundtouch/pkg/models" "github.com/user_account/bose-soundtouch/pkg/discovery" + "github.com/user_account/bose-soundtouch/pkg/config" ) func main() { // Test basic client creation - c := client.New("192.168.1.100", 8090) + c := client.NewClientFromHost("192.168.1.100") fmt.Printf("Client created for %s\n", c.BaseURL()) // Test models can be imported - var info models.Info - fmt.Printf("Info model available: %T\n", info) + var info models.DeviceInfo + fmt.Printf("DeviceInfo model available: %T\n", info) // Test discovery can be imported - var scanner discovery.Scanner - fmt.Printf("Scanner available: %T\n", scanner) + cfg := config.DefaultConfig() + service := discovery.NewUnifiedDiscoveryService(cfg) + fmt.Printf("Discovery service available: %T\n", service) fmt.Println("All imports successful!") }