diff --git a/http2/server_test.go b/http2/server_test.go index 53072b8c..ec25bc7e 100644 --- a/http2/server_test.go +++ b/http2/server_test.go @@ -2115,12 +2115,9 @@ func TestServer_Advertises_Common_Cipher(t *testing.T) { c.CipherSuites = []uint16{requiredSuite} }, func(ts *httptest.Server) { var srv *http.Server = ts.Config - // Have the server configured with one specific cipher suite - // which is banned. This tests that ConfigureServer ends up - // adding the good one to this list. - srv.TLSConfig = &tls.Config{ - CipherSuites: []uint16{tls.TLS_RSA_WITH_AES_128_CBC_SHA}, // just a banned one - } + // Have the server configured with no specific cipher suites. + // This tests that Go's defaults include the required one. + srv.TLSConfig = nil }) defer st.Close() st.greet()