Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 518 for expectGet (0.26 sec)

  1. pkg/controller/deployment/progress_test.go

    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    			got := dc.requeueStuckDeployment(ctx, test.d, test.status)
    			if got != test.expected {
    				t.Errorf("%s: got duration: %v, expected duration: %v", test.name, got, test.expected)
    			}
    		})
    	}
    }
    
    func TestSyncRolloutStatus(t *testing.T) {
    	pds := int32(60)
    	testTime := metav1.Date(2017, 2, 15, 18, 49, 00, 00, time.UTC)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. pkg/apis/apps/v1beta1/defaults_test.go

    		original := test.original
    		expected := test.expected
    		obj2 := roundTrip(t, runtime.Object(original))
    		got, ok := obj2.(*appsv1beta1.Deployment)
    		if !ok {
    			t.Errorf("unexpected object: %v", got)
    			t.FailNow()
    		}
    		if !apiequality.Semantic.DeepEqual(got.Spec, expected.Spec) {
    			t.Errorf("object mismatch!\nexpected:\n\t%+v\ngot:\n\t%+v", got.Spec, expected.Spec)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. cmd/object_api_suite_test.go

    			t.Errorf("%s: Expected the object name to be `%s`, but instead found `%s`", instanceType, "newPrefix", result.Objects[0].Name)
    		}
    		if result.Objects[1].Name != "newPrefix2" {
    			t.Errorf("%s: Expected the object name to be `%s`, but instead found `%s`", instanceType, "newPrefix", result.Objects[1].Name)
    		}
    		if result.Objects[2].Name != "obj0" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        try {
          builder.add((String) null);
          fail("expected NullPointerException");
        } catch (NullPointerException expected) {
        }
    
        try {
          builder.add((String[]) null);
          fail("expected NullPointerException");
        } catch (NullPointerException expected) {
        }
    
        try {
          builder.add("a", null, "b");
          fail("expected NullPointerException");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  5. pkg/controller/daemon/util/daemonset_util_test.go

    			t.Errorf("Expected podTemplateSpec to have no hash label, got: %s", val)
    		}
    	}
    }
    
    func TestReplaceDaemonSetPodNodeNameNodeAffinity(t *testing.T) {
    	tests := []struct {
    		affinity *v1.Affinity
    		hostname string
    		expected *v1.Affinity
    	}{
    		{
    			affinity: nil,
    			hostname: "host_1",
    			expected: &v1.Affinity{
    				NodeAffinity: &v1.NodeAffinity{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  6. src/math/rand/v2/rand_test.go

    func (sr *statsResults) checkSimilarDistribution(expected *statsResults) error {
    	if !nearEqual(sr.mean, expected.mean, expected.closeEnough, expected.maxError) {
    		s := fmt.Sprintf("mean %v != %v (allowed error %v, %v)", sr.mean, expected.mean, expected.closeEnough, expected.maxError)
    		fmt.Println(s)
    		return errors.New(s)
    	}
    	if !nearEqual(sr.stddev, expected.stddev, expected.closeEnough, expected.maxError) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  7. security/pkg/nodeagent/cache/secretcache_test.go

    		expected string
    	}{
    		{
    			name:     "no certs",
    			certs:    []string{},
    			expected: "",
    		},
    		{
    			name:     "single cert",
    			certs:    []string{"a"},
    			expected: "a",
    		},
    		{
    			name:     "multiple certs",
    			certs:    []string{"a", "b"},
    			expected: "a\nb",
    		},
    		{
    			name:     "existing newline",
    			certs:    []string{"a\n", "b"},
    			expected: "a\nb",
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/preemption/preemption_test.go

    			if len(tt.expected) != len(nodes) {
    				t.Errorf("number of nodes is not the same as expected. exptectd: %d, got: %d. Nodes: %v", len(tt.expected), len(nodes), nodes)
    			}
    			for _, node := range nodes {
    				name := node.Node().Name
    				if _, found := tt.expected[name]; !found {
    					t.Errorf("node %v is not expected.", name)
    				}
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  9. pkg/kubelet/kuberuntime/kuberuntime_container_linux_test.go

    		assert.NoError(t, err)
    		assert.Equal(t, test.expected.CpuPeriod, linuxConfig.GetResources().CpuPeriod, test.name)
    		assert.Equal(t, test.expected.CpuQuota, linuxConfig.GetResources().CpuQuota, test.name)
    		assert.Equal(t, test.expected.CpuShares, linuxConfig.GetResources().CpuShares, test.name)
    		assert.Equal(t, test.expected.MemoryLimitInBytes, linuxConfig.GetResources().MemoryLimitInBytes, test.name)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41K bytes
    - Viewed (0)
  10. pkg/volume/git_repo/git_repo_test.go

    }, mounter volume.Mounter) []error {
    	expecteds := scenario.expecteds
    	allErrs := []error{}
    
    	// Construct combined outputs from expected commands
    	var fakeOutputs []fakeexec.FakeAction
    	var fcmd fakeexec.FakeCmd
    	for _, expected := range expecteds {
    		expected := expected
    		if expected.cmd[1] == "clone" {
    			// Calculate the subdirectory clone would create (if any)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 08:26:26 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top