mirror of
https://github.com/foxcpp/maddy.git
synced 2025-04-07 06:57:37 +03:00
target/queue: Fix logger initialization in tests
This commit is contained in:
parent
3d60bfa2db
commit
11fff40ba5
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue