From 07783d24e53aa209f7c4ecdca4db7bfab2a088d8 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Sat, 6 Apr 2024 17:13:45 +0200 Subject: [PATCH] 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. --- smtp/smtp_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smtp/smtp_test.go b/smtp/smtp_test.go index c829e21..148ecf7 100644 --- a/smtp/smtp_test.go +++ b/smtp/smtp_test.go @@ -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