Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerger committed Jun 13, 2024
1 parent 6cc2399 commit 24f4130
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/client/local_proxy_middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ import (
"testing"
"time"

"github.com/gravitational/trace"
"github.com/jonboulle/clockwork"
"github.com/stretchr/testify/require"

"github.com/gravitational/trace"

"github.com/gravitational/teleport/lib/auth/native"
"github.com/gravitational/teleport/lib/client"
"github.com/gravitational/teleport/lib/defaults"
Expand Down Expand Up @@ -88,7 +87,7 @@ func TestLocalCertGenerator(t *testing.T) {
ServerName: "localhost",
})
require.NoError(t, err)
require.Equal(t, caCert.Leaf.DNSNames, []string{"localhost"})
require.Equal(t, []string{"localhost"}, caCert.Leaf.DNSNames)

cert, err := localCertGenerator.GetCertificate(&tls.ClientHelloInfo{
ServerName: "",
Expand All @@ -101,7 +100,7 @@ func TestLocalCertGenerator(t *testing.T) {
ServerName: "example.com",
})
require.NoError(t, err)
require.Equal(t, exampleCert.Leaf.DNSNames, []string{"example.com"})
require.Equal(t, []string{"example.com"}, exampleCert.Leaf.DNSNames)
}

type mockCertIssuer struct {
Expand Down

0 comments on commit 24f4130

Please sign in to comment.