Review fixes: compose duplicate depends_on, .env.example splice, restore COVER_DIR test (#171)

This commit is contained in:
2026-08-23 00:10:49 +07:00
parent 7b22460f5e
commit 6af8859c70
4 changed files with 19 additions and 4 deletions
+7
View File
@@ -21,6 +21,13 @@ func TestLoadLatestPollDefaults(t *testing.T) {
}
}
func TestLoadConfigReadsCoverDirectory(t *testing.T) {
t.Setenv("COVER_DIR", "/covers")
if got := loadConfig().CoverDir; got != "/covers" {
t.Fatalf("CoverDir = %q, want /covers", got)
}
}
func TestLoadConfigReadsDiscordWebhook(t *testing.T) {
// The address is read, never defaulted: unset stays empty (the whole
// path is off), set flows into the Config for the poller's notifier.