mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-22 13:50:49 +01:00
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:
parent
180f6f3a63
commit
21d7b367bd
1 changed files with 1 additions and 1 deletions
|
@ -3174,7 +3174,7 @@ func TestMsg_checkUserAgent(t *testing.T) {
|
||||||
{
|
{
|
||||||
name: "check default user agent",
|
name: "check default user agent",
|
||||||
noDefaultUserAgent: false,
|
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,
|
sf: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue