Explorar o código

http2: cover server recv SETTINGS

Blake Mizerany %!s(int64=11) %!d(string=hai) anos
pai
achega
4f54a4c76a
Modificáronse 1 ficheiros con 6 adicións e 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) {