Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 120 for sweep (0.06 sec)

  1. src/cmd/go/go_test.go

    	if err != nil {
    		tg.t.Fatalf("could not get working directory: %v", err)
    	}
    	return wd
    }
    
    // sleep sleeps for one tick, where a tick is a conservative estimate
    // of how long it takes for a file modification to get a different
    // mtime.
    func (tg *testgoData) sleep() {
    	time.Sleep(mtimeTick)
    }
    
    // setenv sets an environment variable to use when running the test go
    // command.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go

    	delegate          http.Handler
    	restOptionsGetter generic.RESTOptionsGetter
    	admission         admission.Interface
    
    	establishingController *establish.EstablishingController
    
    	// MasterCount is used to implement sleep to improve
    	// CRD establishing process for HA clusters.
    	masterCount int
    
    	converterFactory *conversion.CRConverterFactory
    
    	// so that we can do create on update.
    	authorizer authorizer.Authorizer
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  3. pkg/kubelet/pod_workers_test.go

    				continue
    			}
    			if worker.working {
    				stillWorking = true
    				break
    			}
    		}
    		w.w.podLock.Unlock()
    
    		if !stillWorking {
    			break
    		}
    		time.Sleep(time.Millisecond)
    	}
    }
    
    func (w *timeIncrementingWorkers) tick() {
    	w.lock.Lock()
    	defer w.lock.Unlock()
    	w.w.clock.(*clocktesting.FakePassiveClock).SetTime(w.w.clock.Now().Add(time.Second))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  4. pkg/proxy/winkernel/proxier.go

    	if err != nil {
    		return nil, err
    	}
    
    	// Network could have been detected before Remote Subnet Routes are applied or ManagementIP is updated
    	// Sleep and update the network to include new information
    	if isOverlay(hnsNetworkInfo) {
    		time.Sleep(10 * time.Second)
    		hnsNetworkInfo, err = hns.getNetworkByName(hnsNetworkName)
    		if err != nil {
    			return nil, fmt.Errorf("could not find HNS network %s", hnsNetworkName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 59K bytes
    - Viewed (0)
  5. src/net/dnsclient_unix_test.go

    	fake := fakeDNSServer{rh: func(n, s string, q dnsmessage.Message, _ time.Time) (dnsmessage.Message, error) {
    		switch s {
    		case "[2001:4860:4860::8888]:53", "8.8.8.8:53":
    			break
    		default:
    			time.Sleep(10 * time.Millisecond)
    			return dnsmessage.Message{}, os.ErrDeadlineExceeded
    		}
    		r := dnsmessage.Message{
    			Header: dnsmessage.Header{
    				ID:       q.ID,
    				Response: true,
    			},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go

            }
        },
        "spec": {
            "containers": [
                {
                    "name": "busybox",
                    "image": "busybox",
                    "command": [
                        "sleep",
                        "3600"
                    ],
                    "imagePullPolicy": "IfNotPresent"
                }
            ],
            "restartPolicy": "Always"
        }
    }
    `
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 11:58:41 UTC 2023
    - 56.1K bytes
    - Viewed (0)
  7. pkg/controller/volume/attachdetach/cache/actual_state_of_world_test.go

    	if etime >= maxWaitTime {
    		t.Logf("SetDetachRequestTim Expected: <elapsed time %v is smaller than maxWaitTime %v> Actual <elapsed time is larger than maxWaitTime>", etime, maxWaitTime)
    	}
    	// Sleep and call SetDetachRequestTime again
    	time.Sleep(maxWaitTime)
    	etime, err = asw.SetDetachRequestTime(logger, generatedVolumeName, nodeName)
    	if err != nil {
    		t.Fatalf("SetDetachRequestTime failed. Expected: <no error> Actual: <%v>", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 07:35:17 UTC 2024
    - 66.1K bytes
    - Viewed (0)
  8. src/crypto/tls/tls_test.go

    	// localhost TCP connection, the peer TCP connection can
    	// immediately read it. Because it's racy, we skip this test
    	// in short mode, and then retry it several times with an
    	// increasing sleep in between our final write (via srv.Close
    	// below) and the following read.
    	if testing.Short() {
    		t.Skip("skipping in short mode")
    	}
    	var err error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  9. pkg/registry/core/pod/strategy_test.go

    		newPod      *api.Pod
    		wantPod     *api.Pod
    	}{
    		{
    			description: "gate enabled, creating pods with sleep action",
    			gateEnabled: true,
    			newPod:      podWithHandler(),
    			wantPod:     podWithHandler(),
    		},
    		{
    			description: "gate disabled, creating pods with sleep action",
    			gateEnabled: false,
    			newPod:      podWithHandler(),
    			wantPod:     podWithoutHandler(),
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  10. src/runtime/pprof/pprof_test.go

    }
    
    func blockMutexN(t *testing.T, n int, d time.Duration) {
    	var wg sync.WaitGroup
    	var mu sync.Mutex
    	mu.Lock()
    	go func() {
    		awaitBlockedGoroutine(t, "sync.Mutex.Lock", "blockMutex", n)
    		time.Sleep(d)
    		mu.Unlock()
    	}()
    	// Note: Unlock releases mu before recording the mutex event,
    	// so it's theoretically possible for this to proceed and
    	// capture the profile before the event is recorded. As long
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
Back to top