mirror of
https://github.com/wneessen/go-mail.git
synced 2024-12-22 18:50:37 +01:00
Test fixed
This commit is contained in:
parent
50ea497569
commit
ecfb966de6
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ func TestNewClient(t *testing.T) {
|
|||
t.Errorf("failed to create new client: %s", err)
|
||||
return
|
||||
}
|
||||
if c.host != host {
|
||||
if c.host != tt.host {
|
||||
t.Errorf("failed to create new client. Host expected: %s, got: %s", host, c.host)
|
||||
}
|
||||
if c.cto != DefaultTimeout {
|
||||
|
@ -42,7 +42,7 @@ func TestNewClient(t *testing.T) {
|
|||
if c.tlspolicy != TLSMandatory {
|
||||
t.Errorf("failed to create new client. TLS policy expected: %d, got: %d", TLSMandatory, c.tlspolicy)
|
||||
}
|
||||
if c.tlsconfig.ServerName != host {
|
||||
if c.tlsconfig.ServerName != tt.host {
|
||||
t.Errorf("failed to create new client. TLS config host expected: %s, got: %s",
|
||||
host, c.tlsconfig.ServerName)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue