force-update does not require consumer URLs (ErrNoConsumer sentinel)

This commit is contained in:
mram
2026-09-21 09:05:46 +02:00
parent e46e92bee8
commit cedf28a809
3 changed files with 14 additions and 1 deletions
+4
View File
@@ -1,6 +1,7 @@
package config
import (
"errors"
"log/slog"
"strings"
"testing"
@@ -39,6 +40,9 @@ func TestLoadRequiresConsumer(t *testing.T) {
if err == nil || !strings.Contains(err.Error(), "OLLAMA_URL") {
t.Fatalf("err = %v, want missing-consumer error", err)
}
if !errors.Is(err, ErrNoConsumer) {
t.Fatalf("err = %v, want errors.Is(err, ErrNoConsumer)", err)
}
}
func TestParseEnvFile(t *testing.T) {