Skip to content

Commit

Permalink
Merge pull request #208 from wneessen/fix/logger_test
Browse files Browse the repository at this point in the history
Update format string in Debugf method calls in tests
  • Loading branch information
wneessen authored Apr 6, 2024
2 parents 2fd3167 + 07783d2 commit de174da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smtp/smtp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -777,9 +777,9 @@ func TestClient_SetLogger(t *testing.T) {
if c.logger == 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.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
Expand Down

0 comments on commit de174da

Please sign in to comment.