Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for setupCNIEventClientWithMockServer (0.14 sec)

  1. cni/pkg/plugin/plugin_test.go

    	mrdir.lastRedirect = append(mrdir.lastRedirect, redirect)
    	return nil
    }
    
    // returns the test server URL and a dispose func for the test server
    func setupCNIEventClientWithMockServer(serverErr bool) func() bool {
    	cniAddServerCalled := false
    
    	testServer := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
    		cniAddServerCalled = true
    		if serverErr {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 17.3K bytes
    - Viewed (0)
Back to top