- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for newTestStreamingServer (0.15 sec)
-
pkg/kubelet/server/server_websocket_test.go
} podNamespace := "other" podName := "foo" for desc := range tests { test := tests[desc] t.Run(desc, func(t *testing.T) { ss, err := newTestStreamingServer(0) require.NoError(t, err) defer ss.testHTTPServer.Close() fw := newServerTestWithDebug(true, ss) defer fw.testHTTPServer.Close() portForwardFuncDone := make(chan struct{})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 05 06:08:18 UTC 2023 - 8.2K bytes - Viewed (0) -
pkg/kubelet/server/server_test.go
return f.portForwardFunc(podSandboxID, port, stream) } type testStreamingServer struct { streaming.Server fakeRuntime *fakeRuntime testHTTPServer *httptest.Server } func newTestStreamingServer(streamIdleTimeout time.Duration) (s *testStreamingServer, err error) { s = &testStreamingServer{} s.testHTTPServer = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { s.ServeHTTP(w, r)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 51.5K bytes - Viewed (0)