Update test configuration to use 'sh -c "sleep 999999"' command

This commit is contained in:
2025-10-27 19:25:13 +01:00
parent 6ec2919049
commit dfcc16083c

View File

@@ -134,16 +134,17 @@ func TestConcurrentAccess(t *testing.T) {
// Helper functions for test configuration // Helper functions for test configuration
func createTestAppConfig(instancesDir string) *config.AppConfig { func createTestAppConfig(instancesDir string) *config.AppConfig {
// Use 'sleep' as a test command instead of 'llama-server' // Use 'sh -c "sleep 999999"' as a test command instead of 'llama-server'
// This allows tests to run in CI environments without requiring actual LLM binaries // The shell ignores all additional arguments passed after the command
// The sleep command will be invoked with model paths and other args, which it ignores
return &config.AppConfig{ return &config.AppConfig{
Backends: config.BackendConfig{ Backends: config.BackendConfig{
LlamaCpp: config.BackendSettings{ LlamaCpp: config.BackendSettings{
Command: "yes", Command: "sh",
Args: []string{"-c", "sleep 999999"},
}, },
MLX: config.BackendSettings{ MLX: config.BackendSettings{
Command: "yes", Command: "sh",
Args: []string{"-c", "sleep 999999"},
}, },
}, },
Instances: config.InstancesConfig{ Instances: config.InstancesConfig{