Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 96 for timediv (0.12 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/filters/wrap.go

    			}
    			// This call can have different handlers, but the default chain rate limits. Call it after the metrics are updated
    			// in case the rate limit delays it.  If you outrun the rate for this one timed out requests, something has gone
    			// seriously wrong with your server, but generally having a logging signal for timeouts is useful.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. pkg/kubelet/nodeshutdown/systemd/inhibit_linux_test.go

    			done := make(chan bool)
    
    			go func() {
    				select {
    				case res := <-outChan:
    					assert.Equal(t, tc.shutdownActive, res)
    					done <- true
    				case <-time.After(5 * time.Second):
    					t.Errorf("Timed out waiting for shutdown message")
    					done <- true
    				}
    			}()
    
    			signal := &dbus.Signal{Body: []interface{}{tc.shutdownActive}}
    			fakeSystemBus.signalChannel <- signal
    			<-done
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 29 19:50:06 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. pkg/kubelet/pluginmanager/plugin_manager_test.go

    				return true, nil
    			}
    			t.Logf("expected %#v, got %#v, will retry", expected, fakePluginHandler.events)
    			return false, nil
    		},
    	)
    	if err != nil {
    		t.Fatalf("Timed out waiting for plugin to be added to actual state of world cache.")
    	}
    }
    
    func retryWithExponentialBackOff(initialDuration time.Duration, fn wait.ConditionFunc) error {
    	backoff := wait.Backoff{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. cluster/images/etcd/migrate/migrate_server.go

    				r.cmd = etcdCmd
    				return nil
    			}
    		case <-done:
    			err = etcdCmd.Process.Kill()
    			if err != nil {
    				return fmt.Errorf("error killing etcd: %v", err)
    			}
    			return fmt.Errorf("timed out waiting for etcd on port %d", r.cfg.port)
    		}
    	}
    }
    
    // Stop terminates the etcd server process. If the etcd server process has not been started
    // or is not still running, this returns an error.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 30 16:29:59 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/filters/watch_termination_test.go

    			w := httptest.NewRecorder()
    			w.Code = 0
    			handler.ServeHTTP(w, req)
    			responseGot := w.Result()
    
    			if test.handlerInvoked != handlerInvokedGot {
    				t.Errorf("expected the handler to be invoked: %d timed, but got: %d", test.handlerInvoked, handlerInvokedGot)
    			}
    			if test.statusCodeExpected != responseGot.StatusCode {
    				t.Errorf("expected status code: %d, but got: %d", test.statusCodeExpected, w.Result().StatusCode)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 15:49:49 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  6. test/typeparam/chans.go

    }
    
    func TestSink() {
    	c := _Sink[int](context.Background())
    	after := time.NewTimer(time.Minute)
    	defer after.Stop()
    	send := func(v int) {
    		select {
    		case c <- v:
    		case <-after.C:
    			panic("timed out sending to _Sink")
    		}
    	}
    	send(1)
    	send(2)
    	send(3)
    	close(c)
    }
    
    func TestExclusive() {
    	val := 0
    	ex := _MakeExclusive(&val)
    
    	var wg sync.WaitGroup
    	f := func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  7. pkg/kube/multicluster/cluster.go

    	Client kube.Client
    
    	kubeConfigSha [sha256.Size]byte
    
    	stop chan struct{}
    	// initialSync is marked when RunAndWait completes
    	initialSync *atomic.Bool
    	// initialSyncTimeout is set when RunAndWait timed out
    	initialSyncTimeout *atomic.Bool
    }
    
    type ACTION int
    
    const (
    	Add ACTION = iota
    	Update
    )
    
    func (a ACTION) String() string {
    	switch a {
    	case Add:
    		return "Add"
    	case Update:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 02:13:10 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. pkg/test/echo/server/forwarder/util.go

    				c++
    				tt += responseTimes[id]
    			}
    		}
    		var avgTime time.Duration
    		if c > 0 {
    			avgTime = tt / time.Duration(c)
    		}
    		return nil, fmt.Errorf("request set timed out after %v and only %d/%d requests completed (%v avg)",
    			cfg.timeout, c, cfg.count, avgTime)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Oct 08 09:39:20 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  9. pkg/kubelet/prober/results/results_manager_test.go

    		select {
    		case u := <-m.Updates():
    			if expected != u {
    				t.Errorf("Expected update %v, received %v: %s", expected, u, msg)
    			}
    		case <-time.After(wait.ForeverTestTimeout):
    			t.Errorf("Timed out waiting for update %v: %s", expected, msg)
    		}
    	}
    
    	expectNoUpdate := func(msg string) {
    		// NOTE: Since updates are accumulated asynchronously, this method is not guaranteed to fail
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 02 10:55:41 UTC 2023
    - 4K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DefaultIncomingConnectionHandler.java

                if (finished != null) {
                    LOGGER.debug("Received finished message: {}", finished);
                } else {
                    LOGGER.warn(String.format("Timed out waiting for finished message from client %s. Discarding connection.", connection));
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 7K bytes
    - Viewed (0)
Back to top