Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 579 for expectGet (0.11 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go

    	}
    	if resourceVersion != 5 {
    		t.Errorf("unexpected resourceVersion: %v, expected: 5", resourceVersion)
    	}
    	if !exists {
    		t.Fatalf("no results returned: %#v", obj)
    	}
    	expected := makeTestStoreElement(makeTestPod("bar", 5))
    	if !apiequality.Semantic.DeepEqual(expected, obj) {
    		t.Errorf("expected %v, got %v", expected, obj)
    	}
    }
    
    func TestWaitUntilFreshAndListTimeout(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  2. pkg/apis/apps/v1beta2/defaults_test.go

    	for i, test := range tests {
    		original := test.original
    		expected := test.expected
    		obj2 := roundTrip(t, runtime.Object(original))
    		got, ok := obj2.(*appsv1beta2.DaemonSet)
    		if !ok {
    			t.Errorf("(%d) unexpected object: %v", i, got)
    			t.FailNow()
    		}
    		if !apiequality.Semantic.DeepEqual(got.Spec, expected.Spec) {
    			t.Errorf("(%d) got different than expected\ngot:\n\t%+v\nexpected:\n\t%+v", i, got.Spec, expected.Spec)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/test/integration/basic_test.go

    							t.Errorf("expected modified event, got %v", watchEvent.Type)
    							break
    						}
    
    						// it should have a UUID
    						createdMetadata, err := meta.Accessor(createdNoxuInstance)
    						if err != nil {
    							t.Fatal(err)
    						}
    						if e, a := createdMetadata.GetUID(), eventMetadata.GetUID(); e != a {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 11:35:33 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  4. pkg/apis/apps/v1/defaults_test.go

    		original := test.original
    		expected := test.expected
    		obj2 := roundTrip(t, runtime.Object(original))
    		got, ok := obj2.(*appsv1.DaemonSet)
    		if !ok {
    			t.Errorf("(%d) unexpected object: %v", i, got)
    			t.FailNow()
    		}
    		if !apiequality.Semantic.DeepEqual(got.Spec, expected.Spec) {
    			t.Errorf("(%d) got different than expected\ngot:\n\t%+v\nexpected:\n\t%+v", i, got.Spec, expected.Spec)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/SetsTest.java

        Set<Set<Integer>> expected = newHashSet();
        expected.add(ImmutableSet.<Integer>of());
        expected.add(ImmutableSet.of(1));
        expected.add(ImmutableSet.of(2));
        expected.add(ImmutableSet.of(3));
        expected.add(ImmutableSet.of(1, 2));
        expected.add(ImmutableSet.of(1, 3));
        expected.add(ImmutableSet.of(2, 3));
        expected.add(ImmutableSet.of(1, 2, 3));
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 47.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_interval_test.go

    		if actual != c.expected {
    			t.Errorf("expected %v, got %v", c.expected, actual)
    		}
    	}
    }
    
    func TestIntervalBufferIsEmpty(t *testing.T) {
    	cases := []struct {
    		startIndex int
    		endIndex   int
    		expected   bool
    	}{
    		{startIndex: 0, endIndex: 10, expected: false},
    		{startIndex: 5, endIndex: 20, expected: false},
    		{startIndex: 50, endIndex: 50, expected: true},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

          mlir::RankedTensorType::get({1, 2, 3}, b.getF32Type()));
      TF_ASSERT_OK(output_proto.status());
      EXPECT_EQ(output_proto->dtype(), DT_FLOAT);
      EXPECT_EQ(output_proto->shape().dim_size(), 3);
      EXPECT_EQ(output_proto->shape().dim().at(0).size(), 1);
      EXPECT_EQ(output_proto->shape().dim().at(1).size(), 2);
      EXPECT_EQ(output_proto->shape().dim().at(2).size(), 3);
    }
    
    TEST(ConvertTypeToTensorSpecProtoTest, ScalarTensorType) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. pkg/kubelet/images/image_manager_test.go

    			for _, expected := range c.expected {
    				fakeRuntime.CalledFunctions = nil
    				fakeClock.Step(time.Second)
    
    				_, _, err := puller.EnsureImageExists(ctx, pod, container, nil, nil, "")
    				fakeRuntime.AssertCalls(expected.calls)
    				assert.Equal(t, expected.err, err)
    				assert.Equal(t, expected.shouldRecordStartedPullingTime, fakePodPullingTimeRecorder.startedPullingRecorded)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. pkg/apis/core/v1/helper/helpers_test.go

    			t.Errorf("test %s failed. Expected %v but got %v", test.name, test.exists, keyExists)
    		}
    	}
    }
    
    func TestHugePageUnitSizeFromByteSize(t *testing.T) {
    	tests := []struct {
    		size     int64
    		expected string
    		wantErr  bool
    	}{
    		{
    			size:     1024,
    			expected: "1KB",
    			wantErr:  false,
    		},
    		{
    			size:     33554432,
    			expected: "32MB",
    			wantErr:  false,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 23:03:54 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  10. pkg/api/persistentvolumeclaim/util_test.go

    			if test.spec.DataSource != test.want {
    				t.Errorf("expected condition was not met, test: %s, anyEnabled: %v, xnsEnabled: %v, spec: %+v, expected DataSource: %+v",
    					testName, test.anyEnabled, test.xnsEnabled, test.spec, test.want)
    			}
    			if test.spec.DataSourceRef != test.wantRef {
    				t.Errorf("expected condition was not met, test: %s, anyEnabled: %v, xnsEnabled: %v, spec: %+v, expected DataSourceRef: %+v",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
Back to top