Просмотр исходного кода

Fix unexpected meek_server_http_version

- Always use a TLS profile that offers h2, ensuring that HTTP/2.0 is
  negotiated, as expected in this test case
Rod Hynes 1 год назад
Родитель
Сommit
beb281b43f
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      psiphon/server/server_test.go

+ 3 - 1
psiphon/server/server_test.go

@@ -619,7 +619,9 @@ func TestOmitProvider(t *testing.T) {
 func TestSteeringIP(t *testing.T) {
 	runServer(t,
 		&runServerConfig{
-			tunnelProtocol:       "FRONTED-MEEK-OSSH",
+			tunnelProtocol: "FRONTED-MEEK-OSSH",
+			// use a TLS profile that offers h2 in the ALPN
+			tlsProfile:           protocol.TLS_PROFILE_CHROME_102,
 			requireAuthorization: true,
 			doTunneledWebRequest: true,
 			doTunneledNTPRequest: true,