Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 108 for expectGet (0.15 sec)

  1. pkg/kubelet/kubelet_test.go

    	kubelet.HandlePodCleanups(ctx)
    
    	// assert that unwanted pods were killed
    	if actual, expected := kubelet.podWorkers.(*fakePodWorkers).triggeredDeletion, []types.UID{"12345678"}; !reflect.DeepEqual(actual, expected) {
    		t.Fatalf("expected %v to be deleted, got %v", expected, actual)
    	}
    	fakeRuntime.AssertKilledPods([]string(nil))
    
    	// simulate Runtime.KillPod
    	fakeRuntime.PodList = nil
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  2. 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)
  3. okhttp/src/test/java/okhttp3/CallTest.kt

          requestBuilder.url("ftp://hostname/path")
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Expected URL scheme 'http' or 'https' but was 'ftp'")
        }
      }
    
      @Test
      fun invalidPort() {
        val requestBuilder = Request.Builder()
        assertFailsWith<IllegalArgumentException> {
          requestBuilder.url("http://localhost:65536/")
        }.also { expected ->
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  4. pkg/apis/apps/validation/validation_test.go

    	for k, v := range errorCases {
    		errs := ValidateDeployment(v, corevalidation.PodValidationOptions{})
    		if len(errs) == 0 {
    			t.Errorf("[%s] expected failure", k)
    		} else if !strings.Contains(errs[0].Error(), k) {
    			t.Errorf("unexpected error: %q, expected: %q", errs[0].Error(), k)
    		}
    	}
    }
    
    func TestValidateDeploymentStatus(t *testing.T) {
    	collisionCount := int32(-3)
    	tests := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 111.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    			// verify the results
    			if tc.expectAnnotation != "" {
    				out := obj.(*example.Pod)
    				if v, found := out.Annotations[tc.expectAnnotation]; !found {
    					t.Errorf("Expected annotation %q not found", tc.expectAnnotation)
    				} else if v != "true" {
    					t.Errorf("Expected annotation %q has wrong value: %q", tc.expectAnnotation, v)
    				}
    			}
    			if tc.expectMilestones != nil {
    				if !reflect.DeepEqual(milestones, tc.expectMilestones) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  6. src/net/http/transport_test.go

    			defer wg.Done()
    			doReq()
    		}()
    	}
    	wg.Wait()
    
    	expected := int32(tr.MaxConnsPerHost)
    	if dialCnt != expected {
    		t.Errorf("round 1: too many dials: %d != %d", dialCnt, expected)
    	}
    	if gotConnCnt != expected {
    		t.Errorf("round 1: too many get connections: %d != %d", gotConnCnt, expected)
    	}
    	if ts.TLS != nil && tlsHandshakeCnt != expected {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch_test.go

    	_, actual := StrategicMergePatch([]byte(original), []byte(patch), schema)
    	checkErrorsEqual(t, description, expected, actual, schema)
    }
    
    func checkErrorsEqual(t *testing.T, description string, expected, actual error, schema LookupPatchMeta) {
    	if actual != expected {
    		if actual == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 16:45:45 UTC 2023
    - 130.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tpu_rewrite.mlir

      func.func @mismatched_size_input_sharding_configuration(%arg0: tensor<?xi32>) {
        // expected-error@+1 {{bad 'input_sharding_configuration' attribute, expected array attribute of size 1, got size 0}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 172.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc

      std::vector<string> expected_nodes = {"cluster1", "cluster2", "mul", "x"};
      EXPECT_EQ(expected_nodes, GraphNodes(*graph));
    
      std::vector<std::pair<string, string>> expected_edges = {
          {"cluster1:0", "cluster2:0"},
          {"cluster1:0", "mul:0"},
          {"cluster2:0", "mul:1"},
          {"x:0", "cluster1:0"}};
      EXPECT_EQ(expected_edges, GraphEdges(*graph));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 113.3K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

          getResponse(newRequest("/foo"))
        }.also { expected ->
          when (expected) {
            is SSLHandshakeException -> {
              // Allow conscrypt to fail in different ways
              if (!platform.isConscrypt()) {
                assertThat(expected.cause!!).isInstanceOf<CertificateException>()
              }
            }
            is TlsFatalAlert -> {}
            else -> throw expected
          }
        }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
Back to top