Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 22 of 22 for TestServer (0.15 sec)

  1. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1_test.go

    	HTTPStatusCode() int
    }
    
    // NewV1TestServer wraps a V1Service as an httptest.Server.
    func NewV1TestServer(s V1Service, cert, key, caCert []byte) (*httptest.Server, error) {
    	const webhookPath = "/testserver"
    	var tlsConfig *tls.Config
    	if cert != nil {
    		cert, err := tls.X509KeyPair(cert, key)
    		if err != nil {
    			return nil, err
    		}
    		tlsConfig = &tls.Config{Certificates: []tls.Certificate{cert}}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  2. src/net/http/client_test.go

    	// The race detector doesn't know that we're waiting for a timeout
    	// and thinks that the waitgroup inside httptest.Server is added to concurrently
    	// with us closing it. If we timed out immediately, we could close the testserver
    	// before we entered the handler. We're not timing out immediately and there's
    	// no way we would be done before we entered the handler, but the race detector
    	// doesn't know this, so synchronize explicitly.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
Back to top