Update user agent test in msg_test.go

Updated the test "check default user agent" in `msg_test.go` to reflect dynamic versioning. The wantUserAgent field now uses fmt.Sprintf to combine the go-mail version dynamically, improving the accuracy of testing.
This commit is contained in:
Winni Neessen 2024-02-26 21:05:52 +01:00
parent 180f6f3a63
commit 21d7b367bd
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -3174,7 +3174,7 @@ func TestMsg_checkUserAgent(t *testing.T) {
{
name: "check default user agent",
noDefaultUserAgent: false,
wantUserAgent: "go-mail v0.4.1 // https://github.com/wneessen/go-mail",
wantUserAgent: fmt.Sprintf("go-mail v%s // https://github.com/wneessen/go-mail", VERSION),
sf: false,
},
{