Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newFakeHandler (0.15 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/handler_test.go

    limitations under the License.
    */
    
    package admission
    
    import (
    	"testing"
    	"time"
    )
    
    func TestWaitForReady(t *testing.T) {
    	handler := newFakeHandler()
    
    	// 1. test no readyFunc
    	if !handler.WaitForReady() {
    		t.Errorf("Expect ready for no readyFunc provided.")
    	}
    
    	// 2. readyFunc return ready immediately
    	readyFunc := func() bool {
    		return true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 08:47:19 UTC 2017
    - 1.4K bytes
    - Viewed (0)
Back to top