mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-09 15:32:54 +01:00
Merge pull request #208 from wneessen/fix/logger_test
Update format string in Debugf method calls in tests
This commit is contained in:
commit
de174da6fb
1 changed files with 2 additions and 2 deletions
|
@ -777,9 +777,9 @@ func TestClient_SetLogger(t *testing.T) {
|
||||||
if c.logger == nil {
|
if c.logger == nil {
|
||||||
t.Errorf("Expected Logger to be set but received nil")
|
t.Errorf("Expected Logger to be set but received nil")
|
||||||
}
|
}
|
||||||
c.logger.Debugf(log.Log{Direction: log.DirServerToClient, Format: "", Messages: []interface{}{"test"}})
|
c.logger.Debugf(log.Log{Direction: log.DirServerToClient, Format: "%s", Messages: []interface{}{"test"}})
|
||||||
c.SetLogger(nil)
|
c.SetLogger(nil)
|
||||||
c.logger.Debugf(log.Log{Direction: log.DirServerToClient, Format: "", Messages: []interface{}{"test"}})
|
c.logger.Debugf(log.Log{Direction: log.DirServerToClient, Format: "%s", Messages: []interface{}{"test"}})
|
||||||
}
|
}
|
||||||
|
|
||||||
var newClientServer = `220 hello world
|
var newClientServer = `220 hello world
|
||||||
|
|
Loading…
Reference in a new issue