Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 3,137 for expect2 (0.12 sec)

  1. pilot/pkg/networking/core/cluster_test.go

    						To(Equal(uint32(expected.Tcp.TcpKeepalive.Time.Seconds)))
    					g.Expect(cluster.UpstreamConnectionOptions.TcpKeepalive.KeepaliveInterval.Value).
    						To(Equal(uint32(expected.Tcp.TcpKeepalive.Interval.Seconds)))
    					g.Expect(cluster.ConnectTimeout).NotTo(BeNil())
    					g.Expect(cluster.ConnectTimeout.Seconds).To(Equal(expected.Tcp.ConnectTimeout.Seconds))
    
    					g.Expect(thresholds.MaxConnections).NotTo(BeNil())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/test/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServerTest.groovy

            b.toURL().text == "hi"
    
            when:
            server.stop()
    
            then:
            noExceptionThrown()
        }
    
        def "succeeds when expected serial requests are made"() {
            given:
            server.expect("a")
            server.expect("b")
            server.expect("c")
            server.start()
    
            when:
            succeeds("a")
            succeeds("b")
            succeeds("c")
            server.stop()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  3. pkg/test/framework/suite_test.go

    		ref := []OtherInterface{existing}
    		err := act(&ref, tracked)
    		g.Expect(err).To(BeNil())
    		g.Expect(ref).To(HaveLen(2))
    		g.Expect(existing).To(Equal(ref[0]))
    		g.Expect(tracked).To(Equal(ref[1]))
    	})
    	t.Run("non pointer ref", func(t *testing.T) {
    		g := NewWithT(t)
    		err := act(resource.FakeResource{}, &resource.FakeResource{})
    		g.Expect(err).NotTo(BeNil())
    	})
    }
    
    func TestDeriveSuiteName(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. pkg/kubelet/eviction/eviction_manager_test.go

    	}
    
    	expected := []bool{true, true, true}
    	for i, pod := range pods {
    		if result := manager.Admit(&lifecycle.PodAdmitAttributes{Pod: pod}); expected[i] != result.Admit {
    			t.Errorf("Admit pod: %v, expected: %v, actual: %v", pod, expected[i], result.Admit)
    		}
    	}
    
    	manager.nodeConditions = []v1.NodeConditionType{v1.NodeMemoryPressure}
    	expected = []bool{true, true, false}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  5. pkg/kubelet/pleg/generic_test.go

    	}
    	return a[i].Data.(string) < a[j].Data.(string)
    }
    
    func verifyEvents(t *testing.T, expected, actual []*PodLifecycleEvent) {
    	sort.Sort(sortableEvents(expected))
    	sort.Sort(sortableEvents(actual))
    	if !reflect.DeepEqual(expected, actual) {
    		t.Errorf("Actual events differ from the expected; diff:\n %v", cmp.Diff(expected, actual))
    	}
    }
    
    func TestRelisting(t *testing.T) {
    	testPleg := newTestGenericPLEG()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  6. pkg/kubelet/status/testing/mock_pod_status_provider.go

    func NewMockPodManager(ctrl *gomock.Controller) *MockPodManager {
    	mock := &MockPodManager{ctrl: ctrl}
    	mock.recorder = &MockPodManagerMockRecorder{mock}
    	return mock
    }
    
    // EXPECT returns an object that allows the caller to indicate expected use.
    func (m *MockPodManager) EXPECT() *MockPodManagerMockRecorder {
    	return m.recorder
    }
    
    // GetMirrorPodByPod mocks base method.
    func (m *MockPodManager) GetMirrorPodByPod(arg0 *v1.Pod) (*v1.Pod, bool) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

      if (!num_outs)
        return switchn.emitOpError() << "expects a `num_outs` integer attribute";
    
      // Expect num_outs results + 1 control output.
      if (switchn.getNumResults() != num_outs.getInt() + 1)
        return switchn.emitOpError()
               << "expect `num_outs` (" << num_outs.getInt() << ") results but got "
               << (switchn.getNumResults() - 1);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  8. pkg/kubelet/container/testing/mock_runtime_cache.go

    	mock := &MockRuntimeCache{ctrl: ctrl}
    	mock.recorder = &MockRuntimeCacheMockRecorder{mock}
    	return mock
    }
    
    // EXPECT returns an object that allows the caller to indicate expected use.
    func (m *MockRuntimeCache) EXPECT() *MockRuntimeCacheMockRecorder {
    	return m.recorder
    }
    
    // ForceUpdateIfOlder mocks base method.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/apis/apiserver/load/load_test.go

    			"authorizers":[{"type":"Webhook"}]}`
    		expect := &api.AuthorizationConfiguration{
    			Authorizers: []api.AuthorizerConfiguration{{Type: "Webhook"}},
    		}
    
    		config, err := LoadFromFile(writeTempFile(t, input))
    		if err != nil {
    			t.Fatalf("unexpected err: %v", err)
    		}
    		if !reflect.DeepEqual(config, expect) {
    			t.Fatalf("unexpected config:\n%s", cmp.Diff(expect, config))
    		}
    	}
    
    	// missing file
    	{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 07:00:31 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. pkg/registry/core/service/strategy_test.go

    			}
    			if !reflect.DeepEqual(result.Spec.ClusterIPs, tc.expect.Spec.ClusterIPs) {
    				t.Errorf("expected clusterIPs %q, got %q", tc.expect.Spec.ClusterIP, result.Spec.ClusterIP)
    			}
    			if !reflect.DeepEqual(result.Spec.IPFamilies, tc.expect.Spec.IPFamilies) {
    				t.Errorf("expected ipFamilies %q, got %q", tc.expect.Spec.IPFamilies, result.Spec.IPFamilies)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 32.4K bytes
    - Viewed (0)
Back to top