fix lint error

Kim committed Mar 5, 2026 at 11:27 UTC a5ab88ee431eee80330d26aea01d223c6a41361b
1 file changed +2 -8
sdk/listener_test.go
+2 -8
@@ -16,8 +16,6 @@ import (
16 "gosuda.org/portal/types"
17 )
18
19 -const testNonTLSStartMarker = byte(0x01)
20 -
19 func TestNewListener_ZeroCert_Succeeds(t *testing.T) {
20 t.Parallel()
21
@@ -88,9 +86,7 @@ func TestOpenReverseConnection_NoCert_NoClientCertPresented(t *testing.T) {
86
87 // Duplicate the exact logic from listener.go (both HTTP transport and reverse connection)
88 // First check the HTTP transport logic (lines 134-136)
91 - transportTLSConfig := &tls.Config{
92 - MinVersion: tls.VersionTLS12,
93 - }
89 + transportTLSConfig := &tls.Config{}
90 if len(l.controlPlaneCert.Certificate) > 0 {
91 transportTLSConfig.Certificates = []tls.Certificate{l.controlPlaneCert}
92 }
@@ -106,9 +102,7 @@ func TestOpenReverseConnection_NoCert_NoClientCertPresented(t *testing.T) {
102 }
103
104 // Then check the reverse connection logic (lines 412-414)
109 - reverseTLSConfig := &tls.Config{
110 - MinVersion: tls.VersionTLS12,
111 - }
105 + reverseTLSConfig := &tls.Config{}
106 if len(l.controlPlaneCert.Certificate) > 0 {
107 reverseTLSConfig.Certificates = []tls.Certificate{l.controlPlaneCert}
108 }