Test fixed

This commit is contained in:
Winni Neessen 2022-03-15 21:50:25 +01:00
parent 50ea497569
commit ecfb966de6
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -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)
}