Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPollError (0.09 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go

    		t.Errorf("Expected exactly one invocation, got %d", invocations)
    	}
    	used := atomic.LoadInt32(&fp.used)
    	if used != 1 {
    		t.Errorf("Expected exactly one tick, got %d", used)
    	}
    }
    
    func TestPollError(t *testing.T) {
    	expectedError := errors.New("Expected error")
    	f := ConditionFunc(func() (bool, error) {
    		return false, expectedError
    	})
    	fp := fakePoller{max: 1}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top