Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,661 for expect2 (0.21 sec)

  1. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/events/IntQuestionPromptEventTest.groovy

            expect:
            def result = event.convert("")
            result.response == 4
            result.newPrompt == null
        }
    
        def "can have negative minimum value"() {
            def event = new IntQuestionPromptEvent(123, "question?", -5, -2)
    
            expect:
            def result = event.convert(input)
            result.response == expected
            result.newPrompt == null
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/crypto/tls/bogo_shim_test.go

    	onResumeExpectECHAccepted  = flag.Bool("on-resume-expect-ech-accept", false, "")
    	_                          = flag.Bool("on-resume-expect-no-ech-name-override", false, "")
    	expectedServerName         = flag.String("expect-server-name", "", "")
    
    	expectSessionMiss = flag.Bool("expect-session-miss", false, "")
    
    	_                       = flag.Bool("enable-early-data", false, "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:25:39 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. 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)
  4. platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/JavaCompilerArgumentsBuilderTest.groovy

            spec.compileOptions.compilerArgs = ['--module-source-path', '/src/other']
            def expected = ["-g", "-proc:none", USE_UNSHARED_COMPILER_TABLE_OPTION, "-classpath", "", "--module-source-path", "/src/other"]
    
            expect:
            builder.build() == expected
            builder.noEmptySourcePath().build() == expected
        }
    
        String defaultEmptySourcePathRefFolder() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:36 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/filterlatency/filterlatency_test.go

    	wrapped.ServeHTTP(w, testRequest)
    
    	if callCount != 1 {
    		t.Errorf("expected the given handler to be invoked once, but was actually invoked %d times", callCount)
    	}
    	if filterRecord == nil {
    		t.Fatal("expected a filter record in the request context, but got nil")
    	}
    	if filterName != filterRecord.name {
    		t.Errorf("expected filter name=%s but got=%s", filterName, filterRecord.name)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. pilot/pkg/xds/discovery_test.go

    	}
    
    	if !wgDoneOrTimeout(wg, time.Second) {
    		t.Fatalf("Expected 5 pushes but got %v", len(pushes))
    	}
    	expected := map[string]int{
    		"proxy-0": 1,
    		"proxy-1": 1,
    		"proxy-2": 1,
    		"proxy-3": 1,
    		"proxy-4": 1,
    	}
    	if !reflect.DeepEqual(expected, pushes) {
    		t.Fatalf("Expected pushes %+v, got %+v", expected, pushes)
    	}
    }
    
    type fakeStream struct {
    	grpc.ServerStream
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/route/retry/retry_test.go

    				g.Expect(policy).To(Not(BeNil()))
    				g.Expect(policy.RetryOn).To(Equal("some,fake,conditions"))
    				g.Expect(policy.PerTryTimeout).To(Equal(durationpb.New(time.Second * 3)))
    				g.Expect(policy.NumRetries.Value).To(Equal(uint32(2)))
    				g.Expect(policy.RetriableStatusCodes).To(Equal(make([]uint32, 0)))
    				g.Expect(policy.RetryPriority).To(BeNil())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top