Explorar o código

Merge pull request #11129 from vimalk78/integration-fixes

integration : fix TestTLSClientCipherSuitesMismatch in go1.13
Gyuho Lee %!s(int64=6) %!d(string=hai) anos
pai
achega
64b3e59766
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      integration/v3_tls_test.go

+ 3 - 0
integration/v3_tls_test.go

@@ -56,6 +56,9 @@ func testTLSCipherSuites(t *testing.T, valid bool) {
 	if err != nil {
 		t.Fatal(err)
 	}
+	// go1.13 enables TLS13 by default, and in TLS13, cipher suites are not configurable
+	// setting Max TLS version to TLS12 for go1.13
+	cc.MaxVersion = tls.VersionTLS12
 	cli, cerr := clientv3.New(clientv3.Config{
 		Endpoints:   []string{clus.Members[0].GRPCAddr()},
 		DialTimeout: time.Second,