Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 140 for expect2 (0.47 sec)

  1. pkg/proxy/nftables/proxier_test.go

    	if len(newMap) != len(expected) {
    		t.Errorf("[%d] expected %d results, got %d: %v", tci, len(expected), len(newMap), newMap)
    	}
    	for x := range expected {
    		if len(newMap[x]) != len(expected[x]) {
    			t.Errorf("[%d] expected %d endpoints for %v, got %d", tci, len(expected[x]), x, len(newMap[x]))
    		} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 01:31:57 UTC 2024
    - 173.5K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/runtime/framework_test.go

    			t.Errorf("preFilter1 called %v, expected: 1", preFilter1.PreFilterCalled)
    		}
    		if preFilter2.PreFilterCalled != 1 {
    			t.Errorf("preFilter2 called %v, expected: 1", preFilter2.PreFilterCalled)
    		}
    		if preFilter2.AddCalled != 1 {
    			t.Errorf("AddPod called %v, expected: 1", preFilter2.AddCalled)
    		}
    		if preFilter2.RemoveCalled != 1 {
    			t.Errorf("AddPod called %v, expected: 1", preFilter2.RemoveCalled)
    		}
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 103K bytes
    - Viewed (0)
  3. pkg/scheduler/internal/queue/scheduling_queue_test.go

    		t.Errorf("Expected %v to be in activeQ.", unschedulablePodInfo.Pod.Name)
    	}
    	if _, exists, _ := q.activeQ.Get(newQueuedPodInfoForLookup(highPriNominatedPodInfo.Pod)); exists {
    		t.Errorf("Didn't expect %v to be in activeQ.", highPriorityPodInfo.Pod.Name)
    	}
    	if len(q.nominator.nominatedPods) != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  4. pkg/controller/job/job_controller_test.go

    	}
    	// Verify that after syncing a complete job, the conditions are the same.
    	if got, expected := len(actual.Status.Conditions), 1; got != expected {
    		t.Fatalf("Unexpected job status conditions amount; expected %d, got %d", expected, got)
    	}
    }
    
    func TestSyncJobDeleted(t *testing.T) {
    	_, ctx := ktesting.NewTestContext(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        try {
          getDone(future);
          fail();
        } catch (ExecutionException expected) {
          assertSame(exception, expected.getCause());
        }
    
        try {
          getDoneFromTimeoutOverload(future);
          fail();
        } catch (ExecutionException expected) {
          assertSame(exception, expected.getCause());
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        try {
          getDone(future);
          fail();
        } catch (ExecutionException expected) {
          assertSame(exception, expected.getCause());
        }
    
        try {
          getDoneFromTimeoutOverload(future);
          fail();
        } catch (ExecutionException expected) {
          assertSame(exception, expected.getCause());
        }
      }
    
    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. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      if (!control_node.GetBody().args_empty())
        return control_node.emitOpError() << "expects body without any arguments";
    
      Operation& yield = control_node.GetBody().back();
      if (!isa<YieldOp>(yield))
        return yield.emitOpError()
               << "invalid TFL.control_node terminator, yield expected";
    
      // Ensure that the terminator's operands and the control_node results match in
      // types.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  8. pkg/controller/daemon/daemon_controller_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	expectStableQueueLength := func(expected int) {
    		t.Helper()
    		for i := 0; i < 5; i++ {
    			if actual := dsc.queue.Len(); actual != expected {
    				t.Fatalf("expected queue len to remain at %d, got %d", expected, actual)
    			}
    			time.Sleep(10 * time.Millisecond)
    		}
    	}
    	waitForQueueLength := func(expected int, msg string) {
    		t.Helper()
    		i := 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  9. pkg/controller/statefulset/stateful_set_control_test.go

    		t.Errorf("Found unexpected number of delete calls, got %v, expected %v", om.deletePodTracker.requests, expectedNumOfDeleteRequests)
    	}
    	if pods, err = om.podsLister.Pods(set.Namespace).List(selector); err != nil {
    		t.Error(err)
    	}
    
    	// Expect no additional delete calls and expect pod creation
    	if _, err := ssc.UpdateStatefulSet(context.TODO(), set, pods); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 19:01:47 UTC 2024
    - 108.7K bytes
    - Viewed (0)
  10. src/database/sql/sql_test.go

    	type Str string
    	var scanned Str
    
    	err := db.QueryRow("SELECT|people|name|name=?", "Alice").Scan(&scanned)
    	if err != nil {
    		t.Fatal(err)
    	}
    	expected := Str("Alice")
    	if scanned != expected {
    		t.Errorf("expected %+v, got %+v", expected, scanned)
    	}
    }
    
    func BenchmarkConcurrentDBExec(b *testing.B) {
    	b.ReportAllocs()
    	ct := new(concurrentDBExecTest)
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
Back to top