Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCancelRequest (0.12 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/command_headers_test.go

    		currCmd = cmd
    	}
    	return currCmd
    }
    
    // Tests that the CancelRequest function is propogated to the wrapped Delegate
    // RoundTripper; but only if the Delegate implements the CancelRequest function.
    func TestCancelRequest(t *testing.T) {
    	tests := map[string]struct {
    		delegate  http.RoundTripper
    		cancelled bool
    	}{
    		"CancelRequest propagated to delegate": {
    			delegate:  &cancellableRoundTripper{},
    			cancelled: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 20 20:34:02 UTC 2021
    - 4.6K bytes
    - Viewed (0)
Back to top