Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for Millisecond (0.15 sec)

  1. src/net/http/serve_test.go

    }
    func testServerGracefulClose(t *testing.T, mode testMode) {
    	runTimeSensitiveTest(t, []time.Duration{
    		1 * time.Millisecond,
    		5 * time.Millisecond,
    		10 * time.Millisecond,
    		50 * time.Millisecond,
    		100 * time.Millisecond,
    		500 * time.Millisecond,
    		time.Second,
    		5 * time.Second,
    	}, func(t *testing.T, timeout time.Duration) error {
    		SetRSTAvoidanceDelay(t, timeout)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  2. src/net/http/transport_test.go

    }
    func testIssue3595(t *testing.T, mode testMode) {
    	runTimeSensitiveTest(t, []time.Duration{
    		1 * time.Millisecond,
    		5 * time.Millisecond,
    		10 * time.Millisecond,
    		50 * time.Millisecond,
    		100 * time.Millisecond,
    		500 * time.Millisecond,
    		time.Second,
    		5 * time.Second,
    	}, func(t *testing.T, timeout time.Duration) error {
    		SetRSTAvoidanceDelay(t, timeout)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  3. src/database/sql/sql_test.go

    		secondTimeOffset  time.Duration
    	}{
    		{
    			time.Millisecond,
    			0,
    			time.Millisecond - time.Nanosecond,
    			int64(usedConns - reusedConns),
    			int64(usedConns - reusedConns),
    			10 * time.Millisecond,
    			0,
    		},
    		{
    			// Want to close some connections via max idle time and one by max lifetime.
    			time.Millisecond,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  4. tests/integration/pilot/common/routing.go

    					Port:  echo.Port{ServicePort: e.port, Protocol: protocol.HTTP},
    					Count: 1,
    					// Failed requests will go to non-existent port which hangs forever
    					// Set a low timeout to fail faster
    					Timeout: time.Millisecond * 500,
    					Address: t.Apps.External.All[0].Address(),
    					HTTP: echo.HTTP{
    						Headers: HostHeader(t.Apps.External.All[0].Config().DefaultHostHeader),
    					},
    					Scheme: scheme.HTTP,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
  5. pkg/controller/job/job_controller_test.go

    	"k8s.io/utils/ptr"
    )
    
    var realClock = &clock.RealClock{}
    var alwaysReady = func() bool { return true }
    
    const fastSyncJobBatchPeriod = 10 * time.Millisecond
    const fastJobApiBackoff = 10 * time.Millisecond
    const fastRequeue = 10 * time.Millisecond
    
    // testFinishedAt represents time one second later than unix epoch
    // this will be used in various test cases where we don't want back-off to kick in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  6. pkg/controller/daemon/daemon_controller_test.go

    		informerFactory.Apps().V1().ControllerRevisions(),
    		informerFactory.Core().V1().Pods(),
    		informerFactory.Core().V1().Nodes(),
    		clientset,
    		flowcontrol.NewFakeBackOff(50*time.Millisecond, 500*time.Millisecond, testingclock.NewFakeClock(time.Now())),
    	)
    	if err != nil {
    		return nil, nil, nil, err
    	}
    
    	fakeRecorder := record.NewFakeRecorder(100)
    	dsc.eventRecorder = fakeRecorder
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_test.go

    	// simulate Runtime.KillPod
    	fakeRuntime.PodList = nil
    
    	kubelet.HandlePodCleanups(ctx)
    	kubelet.HandlePodCleanups(ctx)
    	kubelet.HandlePodCleanups(ctx)
    
    	destroyCount := 0
    	err := wait.Poll(100*time.Millisecond, 10*time.Second, func() (bool, error) {
    		fakeContainerManager.PodContainerManager.Lock()
    		defer fakeContainerManager.PodContainerManager.Unlock()
    		destroyCount = 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  8. pkg/scheduler/schedule_one_test.go

    	// Those two goroutines will stop until ctx.Done() is called, which means all waiting pods are scheduled at least once.
    	go wait.Until(deleteNodesOneRound, 10*time.Millisecond, ctx.Done())
    	go wait.Until(createPodsOneRound, 9*time.Millisecond, ctx.Done())
    
    	// Capture the events to wait all pods to be scheduled at least once.
    	allWaitSchedulingPods := sets.New[string]()
    	for i := 0; i < waitSchedulingPodNumber; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  9. cmd/metrics-v2.go

    				},
    			}
    			m.Value = float64(health.latency.curr / time.Millisecond)
    			ml = append(ml, m)
    
    			// link latency average
    			m = MetricV2{
    				Description: getClusterRepLinkLatencyAvgMD(),
    				VariableLabels: map[string]string{
    					"endpoint": ep,
    				},
    			}
    			m.Value = float64(health.latency.avg / time.Millisecond)
    			ml = append(ml, m)
    
    			// link latency max
    			m = MetricV2{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go

    func TestNamedCreaterWithoutName(t *testing.T) {
    	storage := &NamedCreaterRESTStorage{
    		SimpleRESTStorage: &SimpleRESTStorage{
    			injectedFunction: func(obj runtime.Object) (runtime.Object, error) {
    				time.Sleep(5 * time.Millisecond)
    				return obj, nil
    			},
    		},
    	}
    
    	handler := handle(map[string]rest.Storage{"foo": storage})
    	server := httptest.NewServer(handler)
    	defer server.Close()
    	client := http.Client{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:15:22 UTC 2023
    - 158.7K bytes
    - Viewed (0)
Back to top