Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for expectFail (0.31 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/object/matcher_test.go

    		attrs          admission.Attributes
    
    		expectCall bool
    	}{
    		{
    			name:           "empty object selector matches everything",
    			objectSelector: &metav1.LabelSelector{},
    			attrs:          admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{}, "", "name", schema.GroupVersionResource{}, "", admission.Create, &metav1.CreateOptions{}, false, nil),
    			expectCall:     true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 26 00:41:14 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook_test.go

    				t.Fatalf("expected error %q, got no error and %#v", testcase.expectErr, invocation)
    			}
    
    			if invocation == nil {
    				if testcase.expectCall {
    					t.Fatal("expected invocation, got nil")
    				}
    				return
    			}
    
    			if !testcase.expectCall {
    				t.Fatal("unexpected invocation")
    			}
    
    			if invocation.Kind != testcase.expectCallKind {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 28 19:30:04 UTC 2023
    - 32K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        private boolean expectCall = false;
        private final CountDownLatch calledCountDown = new CountDownLatch(1);
    
        @Override
        public void run() {
          assertTrue("Listener called before it was expected", expectCall);
          assertFalse("Listener called more than once", wasCalled());
          calledCountDown.countDown();
        }
    
        public void expectCall() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr_test.go

    		input     IntOrString
    		total     int
    		roundUp   bool
    		expectErr bool
    		expectVal int
    	}{
    		{
    			input:     FromInt32(123),
    			expectErr: false,
    			expectVal: 123,
    		},
    		{
    			input:     FromString("90%"),
    			total:     100,
    			roundUp:   true,
    			expectErr: false,
    			expectVal: 90,
    		},
    		{
    			input:     FromString("90%"),
    			total:     95,
    			roundUp:   true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    		}
    
    		if gotFair != expectFair {
    			uss.t.Errorf("%s client %d last=%v expectFair=%v margin=%v got an Average of %v but the expected average was %v", uss.name, i, last, expectFair, margin, averages[i], expectedAverage)
    		} else {
    			uss.t.Logf("%s client %d last=%v expectFair=%v margin=%v got an Average of %v and the expected average was %v", uss.name, i, last, expectFair, margin, averages[i], expectedAverage)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          called.set(true);
        }
    
        public void expectCall() {
          assertFalse("expectCall is already true", expectCall);
          expectCall = true;
        }
    
        public boolean wasCalled() {
          return called.get();
        }
      }
    
      public void testAllAsList() throws Exception {
        // Create input and output
        SettableFuture<String> future1 = SettableFuture.create();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          called.set(true);
        }
    
        public void expectCall() {
          assertFalse("expectCall is already true", expectCall);
          expectCall = true;
        }
    
        public boolean wasCalled() {
          return called.get();
        }
      }
    
      public void testAllAsList() throws Exception {
        // Create input and output
        SettableFuture<String> future1 = SettableFuture.create();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  8. pkg/util/async/bounded_frequency_runner_test.go

    var minInterval = 1 * time.Second
    var maxInterval = 10 * time.Second
    
    func waitForReset(name string, t *testing.T, timer *fakeTimer, obj *receiver, expectCall bool, expectNext time.Duration) {
    	upd := <-timer.updated // wait for stop
    	checkReceiver(name, t, obj, expectCall)
    	checkReceiver(name, t, obj, false) // prove post-condition
    	checkTimer(name, t, upd, false, 0)
    	upd = <-timer.updated // wait for reset
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 15 09:36:26 UTC 2022
    - 12.5K bytes
    - Viewed (0)
Back to top