Skip to content

Commit d8580d1

Browse files
committed
Fix linting
1 parent 590f0f8 commit d8580d1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

coderd/coderdtest/coderdtest.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ func NewOptions(t *testing.T, options *Options) (*httptest.Server, context.Cance
163163
if options.TLSCertificates != nil {
164164
srv.TLS = &tls.Config{
165165
Certificates: options.TLSCertificates,
166+
MinVersion: tls.VersionTLS12,
166167
}
167168
srv.StartTLS()
168169
} else {

enterprise/coderd/replicas_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"crypto/tls"
66
"testing"
7-
"time"
87

98
"github.com/stretchr/testify/require"
109

@@ -80,7 +79,7 @@ func TestReplicas(t *testing.T) {
8079
})
8180
require.NoError(t, err)
8281
require.Eventually(t, func() bool {
83-
ctx, cancelFunc := context.WithTimeout(context.Background(), 3*time.Second)
82+
ctx, cancelFunc := context.WithTimeout(context.Background(), testutil.IntervalSlow)
8483
defer cancelFunc()
8584
_, err = conn.Ping(ctx)
8685
return err == nil

enterprise/derpmesh/derpmesh_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func TestDERPMesh(t *testing.T) {
3636
pool := x509.NewCertPool()
3737
pool.AddCert(certificate)
3838
tlsConfig := &tls.Config{
39+
MinVersion: tls.VersionTLS12,
3940
ServerName: commonName,
4041
RootCAs: pool,
4142
Certificates: []tls.Certificate{rawCert},

0 commit comments

Comments
 (0)