GetMailDomain called log.Warningf which panics when the logger is not initialized (e.g. in unit tests). Add log.IsInitialized() guard. Also fix TestGetThreadID tests that hardcoded "vikunja" as the expected fallback domain - on CI the os.Hostname() fallback produces a different value. Tests now dynamically compute the expected domain. |
||
|---|---|---|
| .. | ||
| domain.go | ||
| domain_test.go | ||
| mail.go | ||
| send_mail.go | ||
| send_mail_test.go | ||
| testing.go | ||