Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 112 for timeEnd (0.11 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. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/SymbolByFqName.kt

            val testFileText = FileUtil.loadFile(File(filePath))
            val fileTextWithoutSymbolsData = testFileText.substringBeforeLast(SYMBOLS_TAG).trimEnd()
            appendLine(fileTextWithoutSymbolsData)
            appendLine()
            appendLine(SYMBOLS_TAG)
            append(rendered)
        }
    
        private const val SYMBOLS_TAG = "// SYMBOLS:"
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  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. 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)
  9. pkg/controlplane/controller/apiserverleasegc/gc_controller.go

    	// we have a personal informer that is narrowly scoped, start it.
    	go c.leaseInformer.Run(stopCh)
    
    	if !cache.WaitForCacheSync(stopCh, c.leasesSynced) {
    		utilruntime.HandleError(fmt.Errorf("timed out waiting for caches to sync"))
    		return
    	}
    
    	go wait.Until(c.gc, c.gcCheckPeriod, stopCh)
    
    	<-stopCh
    }
    
    func (c *Controller) gc() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 25 03:27:44 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  10. 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)
Back to top