mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-08 23:12:54 +01:00
Update format string in Debugf method calls in tests
The format string for the Debugf method calls within the smtp_test.go file have been updated. Previously, the format string was empty, but it has now been changed to "%s" to align with the standard formatting expectations, improving the correctness of the tests.
This commit is contained in:
parent
2fd3167de3
commit
07783d24e5
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