Explorar el Código

http2: cover server recv SETTINGS

Blake Mizerany hace 11 años
padre
commit
4f54a4c76a
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      http2_test.go

+ 6 - 0
http2_test.go

@@ -115,6 +115,12 @@ func TestServer(t *testing.T) {
 	})
 	defer st.Close()
 
+	covers("3.5", `
+		The server connection preface consists of a potentially empty
+		SETTINGS frame ([SETTINGS]) that MUST be the first frame the
+		server sends in the HTTP/2 connection.
+	`)
+
 	st.writePreface()
 	st.writeInitialSettings()
 	st.wantSettings().ForeachSetting(func(s Setting) {