1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

test: Add a set of tests for handling bad/invalid configs

This patch adds a set of tests to validate chasquid's handling of bad
and invalid configurations, to make sure we fail as expected.
This commit is contained in:
Alberto Bertogli
2023-05-16 11:47:31 +01:00
parent 0c9d1536db
commit 01a6d088e2
32 changed files with 314 additions and 7 deletions

View File

@@ -153,7 +153,7 @@ func (s *Server) InitDomainInfo(dir string) *domaininfo.DB {
func (s *Server) InitQueue(path string, localC, remoteC courier.Courier) {
q, err := queue.New(path, s.localDomains, s.aliasesR, localC, remoteC)
if err != nil {
log.Fatalf("Error initializing queue: %v:", err)
log.Fatalf("Error initializing queue: %v", err)
}
err = q.Load()