Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for actualCallCount (0.26 sec)

  1. pkg/volume/testing/testing.go

    	if len(detachers) == 0 && (expectedCallCount == 0) {
    		return nil
    	}
    	actualCallCount := 0
    	for _, detacher := range detachers {
    		actualCallCount = detacher.GetUnmountDeviceCallCount()
    		if expectedCallCount == 0 && actualCallCount == expectedCallCount {
    			return nil
    		}
    
    		if (expectedCallCount > 0) && (actualCallCount >= expectedCallCount) {
    			return nil
    		}
    	}
    
    	return fmt.Errorf(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/reconciler/reconstruct_test.go

    	if len(unmounters) == 0 && (expected == 0) {
    		return nil
    	}
    	actualCallCount := 0
    	for _, unmounter := range unmounters {
    		actualCallCount = unmounter.GetTearDownCallCount()
    		if actualCallCount == expected {
    			return nil
    		}
    	}
    	return fmt.Errorf("expected TearDown calls %d, got %d", expected, actualCallCount)
    }
    
    func TestReconstructVolumesMount(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. pkg/controller/volume/attachdetach/reconciler/reconciler_test.go

    		time.Duration(5*time.Millisecond),
    		func() (bool, error) {
    			actualCallCount := fakePlugin.GetNewAttacherCallCount()
    			if actualCallCount >= expectedCallCount {
    				return true, nil
    			}
    			t.Logf(
    				"Warning: Wrong NewAttacherCallCount. Expected: <%v> Actual: <%v>. Will retry.",
    				expectedCallCount,
    				actualCallCount)
    			return false, nil
    		},
    	)
    
    	if err != nil {
    		t.Fatalf(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 07:00:14 UTC 2024
    - 72.8K bytes
    - Viewed (0)
Back to top