Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 91 for timeEnd (0.17 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapiv3/controller.go

    	klog.Infof("Starting OpenAPI V3 controller")
    
    	c.openAPIV3Service = openAPIV3Service
    
    	if !cache.WaitForCacheSync(stopCh, c.crdsSynced) {
    		utilruntime.HandleError(fmt.Errorf("timed out waiting for caches to sync"))
    		return
    	}
    
    	crds, err := c.crdLister.List(labels.Everything())
    	if err != nil {
    		utilruntime.HandleError(fmt.Errorf("failed to initially list all CRDs: %v", err))
    		return
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/server_test.go

    	wg := &WaitGroup{
    		done: make(chan struct{}),
    	}
    
    	wg.Add(n)
    	return wg, func() {
    		select {
    		case <-wg.C():
    			return
    		case <-time.After(time.Second):
    			t.Fatal("Wait group timed out!\n")
    		}
    	}
    }
    
    func (wg *WaitGroup) Add(i int32) {
    	select {
    	case <-wg.done:
    		panic("use of an already closed WaitGroup")
    	default:
    	}
    	atomic.AddInt32(&wg.count, i)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. pkg/wasm/httpfetcher_test.go

    				w.WriteHeader(http.StatusInternalServerError)
    			},
    			timeout:        0, // Immediately timeout in the context level.
    			wantNumRequest: 0, // Should not retried because it is already timed out.
    			wantErrorRegex: "wasm module download failed after 1 attempts, last error: Get \"[^\"]+\": context deadline exceeded",
    		},
    	}
    
    	for _, c := range cases {
    		t.Run(c.name, func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 15:56:41 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/wait/wait.go

    package wait
    
    import (
    	"context"
    	"math/rand"
    	"sync"
    	"time"
    
    	"k8s.io/apimachinery/pkg/util/runtime"
    )
    
    // For any test of the style:
    //
    //	...
    //	<- time.After(timeout):
    //	   t.Errorf("Timed out")
    //
    // The value for timeout should effectively be "forever." Obviously we don't want our tests to truly lock up forever, but 30s
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

          } else {
            try {
              ScheduledFuture<?> timer = timeoutFuture.timer;
              timeoutFuture.timer = null; // Don't include already elapsed delay in delegate.toString()
              String message = "Timed out";
              // This try-finally block ensures that we complete the timeout future, even if attempting
              // to produce the message throws (probably StackOverflowError from delegate.toString())
              try {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. src/internal/trace/base.go

    // has 5 arguments and needs to smuggle in a 6th. Figure out a way to
    // shrink this in the future.
    const maxArgs = 6
    
    // timedEventArgs is an array that is able to hold the arguments for any
    // timed event.
    type timedEventArgs [maxArgs - 1]uint64
    
    // baseEvent is the basic unprocessed event. This serves as a common
    // fundamental data structure across.
    type baseEvent struct {
    	typ  event.Type
    	time Time
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. pkg/controller/nodelifecycle/scheduler/rate_limited_queue.go

    	return &RateLimitedTimedQueue{
    		queue: UniqueQueue{
    			queue: TimedQueue{},
    			set:   sets.NewString(),
    		},
    		limiter: limiter,
    	}
    }
    
    // ActionFunc takes a timed value and returns false if the item must
    // be retried, with an optional time.Duration if some minimum wait
    // interval should be used.
    type ActionFunc func(TimedValue) (bool, time.Duration)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 07:50:01 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  8. src/syscall/exec_unix_test.go

    	defer timer.Stop()
    	for {
    		select {
    		case sig := <-ch1:
    			t.Errorf("unexpected signal %v", sig)
    		case <-ch2:
    			// Success.
    			return
    		case <-timer.C:
    			t.Fatal("timed out waiting for child process")
    		}
    	}
    }
    
    // Test a couple of cases that SysProcAttr can't handle. Issue 29458.
    func TestInvalidExec(t *testing.T) {
    	t.Parallel()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. pilot/pkg/xds/pushqueue_test.go

    		result <- con
    	}()
    	select {
    	case got := <-result:
    		if got != expected {
    			t.Fatalf("Expected proxy %v, got %v", expected, got)
    		}
    	case <-time.After(time.Millisecond * 500):
    		t.Fatalf("Timed out")
    	}
    }
    
    func TestProxyQueue(t *testing.T) {
    	proxies := make([]*Connection, 0, 100)
    	for p := 0; p < 100; p++ {
    		conn := newConnection("", nil)
    		conn.SetID(fmt.Sprintf("proxy-%d", p))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/controller.go

    	klog.Infof("Starting OpenAPI controller")
    
    	c.staticSpec = staticSpec
    	c.openAPIService = openAPIService
    
    	if !cache.WaitForCacheSync(stopCh, c.crdsSynced) {
    		utilruntime.HandleError(fmt.Errorf("timed out waiting for caches to sync"))
    		return
    	}
    
    	// create initial spec to avoid merging once per CRD on startup
    	crds, err := c.crdLister.List(labels.Everything())
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top