mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-05 16:44:22 +00:00
Update test configuration to use 'sh -c "sleep 999999"' command
This commit is contained in:
@@ -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{
|
||||||
|
|||||||
Reference in New Issue
Block a user