Skip to content

Commit

Permalink
happy lint (megaease#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 committed May 30, 2022
1 parent e168595 commit 5f7f020
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions probe/tls/tls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ type mockServer struct {
hostname string
}

func newTlsMockServer(template *x509.Certificate) (*mockServer, error) {
func newTLSMockServer(template *x509.Certificate) (*mockServer, error) {
cert, err := createCert(template)
if err != nil {
return nil, err
Expand Down Expand Up @@ -130,7 +130,7 @@ func (m *mockServer) Close() error {
}

func TestTlsSimple(t *testing.T) {
mock, err := newTlsMockServer(&x509.Certificate{
mock, err := newTLSMockServer(&x509.Certificate{
DNSNames: []string{"0.0.0.0"},
IPAddresses: []net.IP{net.IPv4zero, net.IPv6loopback, net.IPv6unspecified},
SerialNumber: big.NewInt(1),
Expand Down Expand Up @@ -162,7 +162,7 @@ func TestTlsSimple(t *testing.T) {
}

func TestTlsUntrust(t *testing.T) {
mock, err := newTlsMockServer(&x509.Certificate{
mock, err := newTLSMockServer(&x509.Certificate{
DNSNames: []string{"0.0.0.0"},
IPAddresses: []net.IP{net.IPv4zero, net.IPv6loopback, net.IPv6unspecified},
SerialNumber: big.NewInt(1),
Expand Down Expand Up @@ -211,7 +211,7 @@ func TestTlsUntrust(t *testing.T) {
}

func TestTlsExpired(t *testing.T) {
mock, err := newTlsMockServer(&x509.Certificate{
mock, err := newTLSMockServer(&x509.Certificate{
DNSNames: []string{"0.0.0.0"},
IPAddresses: []net.IP{net.IPv4zero, net.IPv6loopback, net.IPv6unspecified},
SerialNumber: big.NewInt(1),
Expand Down

0 comments on commit 5f7f020

Please sign in to comment.