target/queue: Fix logger initialization in tests

This commit is contained in:
fox.cpp 2019-09-15 04:19:22 +03:00
parent 3d60bfa2db
commit 11fff40ba5
No known key found for this signature in database
GPG key ID: E76D97CCEDE90B6C

View file

@ -12,7 +12,6 @@ import (
"github.com/emersion/go-message/textproto"
"github.com/emersion/go-smtp"
"github.com/foxcpp/maddy/buffer"
"github.com/foxcpp/maddy/log"
"github.com/foxcpp/maddy/module"
"github.com/foxcpp/maddy/testutils"
)
@ -50,7 +49,7 @@ func newTestQueueDir(t *testing.T, target module.DeliveryTarget, dir string) *Qu
q.Target = target
if !testing.Verbose() {
q.Log = log.Logger{Name: "", Out: log.WriterLog(ioutil.Discard)}
q.Log = testutils.Logger(t, "queue")
}
q.start(1)