Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 875 for Millisecond (0.2 sec)

  1. pkg/kubelet/config/file_test.go

    	err = os.WriteFile(fileName, []byte{1, 2, 3}, 0555)
    	if err != nil {
    		t.Fatalf("unable to write test file %#v", err)
    	}
    
    	ch := make(chan interface{}, 1)
    	lw := newSourceFile(fileName, "localhost", time.Millisecond, ch)
    	err = lw.listConfig()
    	if err == nil {
    		t.Fatalf("expected error, got nil")
    	}
    	expectEmptyChannel(t, ch)
    }
    
    func TestExtractFromEmptyDir(t *testing.T) {
    	dirName, err := mkTempDir("file-test")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 03:35:26 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  2. src/runtime/testdata/testprogcgo/lockosthread.go

    			println("failed to start goroutine on main thread")
    			os.Exit(1)
    		}
    		// Exit with the thread locked, which should exit the
    		// main thread.
    		ready <- true
    	}()
    	<-ready
    	time.Sleep(1 * time.Millisecond)
    	// Check that this goroutine is still running on a different
    	// thread.
    	self := C.pthread_self()
    	if C.pthread_equal(mainThread, self) != 0 {
    		println("goroutine migrated to locked thread")
    		os.Exit(1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 20:21:33 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/healthz_test.go

    		if err != nil {
    			t.Errorf("Got %v, expected no error", err)
    		}
    		c.Step(10 * time.Second)
    		err = healthCheck.Check(nil)
    		if err != nil {
    			t.Errorf("Got %v, expected no error", err)
    		}
    		c.Step(1 * time.Millisecond)
    		err = healthCheck.Check(nil)
    		if err == nil || err.Error() != "not finished" {
    			t.Errorf("Got '%v', but expected error to be 'not finished'", err)
    		}
    		close(doneCh)
    		err = healthCheck.Check(nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 15 09:52:18 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  4. pkg/test/util/assert/tracker.go

    				return nil
    			}
    			// clear the event
    			t.events[0] = ptr.Empty[T]()
    			t.events = t.events[1:]
    			return nil
    		}, retry.Timeout(time.Second), retry.BackoffDelay(time.Millisecond))
    		if err != nil {
    			t.t.Fatal(err)
    		}
    	}
    	t.Empty()
    }
    
    func (t *Tracker[T]) Events() []T {
    	t.mu.Lock()
    	defer t.mu.Unlock()
    	return t.events
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/changedetection/state/GradleUserHomeScopeFileTimeStampInspector.java

                }
            }
        }
    
        /**
         * Detects whether the file system has a reliable high precision timestamp.
         *
         * If `isCurrentTimestampHighPrecision` is in `millisecond` precision, then all file timestamps will have `millisecond` precision
         * since we check all Java APIs that can return a high or a low precision, and we choose the one with the lowest precision.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/width_test.go

    				Resource: "foos",
    			},
    			watchCount:                29,
    			maxSeats:                  10,
    			initialSeatsExpected:      1,
    			finalSeatsExpected:        3,
    			additionalLatencyExpected: 5 * time.Millisecond,
    		},
    		{
    			name:       "request verb is create, watches registered, no additional latency",
    			requestURI: "http://server/apis/foo.bar/v1/foos",
    			requestInfo: &apirequest.RequestInfo{
    				Verb:     "create",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go

    	backoffMgr := NewExponentialBackoffManager(1*time.Millisecond, 10*time.Millisecond, 1*time.Hour, 2.0, 0.0, &clock.RealClock{})
    
    	for i := range durationFactors {
    		start := time.Now()
    		<-backoffMgr.Backoff().C()
    		passed := time.Since(start)
    		if passed < durationFactors[i]*time.Millisecond {
    			t.Errorf("backoff should be at least %d ms, but got %s", durationFactors[i], passed.String())
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  8. pilot/pkg/xds/pushqueue_test.go

    	select {
    	case ret := <-done:
    		return ret
    	case <-time.After(time.Millisecond * 500):
    		return nil
    	}
    }
    
    func ExpectTimeout(t *testing.T, p *PushQueue) {
    	t.Helper()
    	done := make(chan struct{}, 1)
    	go func() {
    		p.Dequeue()
    		done <- struct{}{}
    	}()
    	select {
    	case <-done:
    		t.Fatalf("Expected timeout")
    	case <-time.After(time.Millisecond * 500):
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. pkg/backoff/exponential_test.go

    package backoff
    
    import (
    	"context"
    	"errors"
    	"sync"
    	"testing"
    	"time"
    
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestBackOff(t *testing.T) {
    	var (
    		testInitialInterval = 500 * time.Millisecond
    		testMaxInterval     = 5 * time.Second
    	)
    
    	o := DefaultOption()
    	o.InitialInterval = testInitialInterval
    	o.MaxInterval = testMaxInterval
    	exp := NewExponentialBackOff(o)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 05 16:03:30 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  10. src/cmd/go/internal/robustio/robustio_flaky.go

    	"time"
    )
    
    const arbitraryTimeout = 2000 * time.Millisecond
    
    // retry retries ephemeral errors from f up to an arbitrary timeout
    // to work around filesystem flakiness on Windows and Darwin.
    func retry(f func() (err error, mayRetry bool)) error {
    	var (
    		bestErr     error
    		lowestErrno syscall.Errno
    		start       time.Time
    		nextSleep   time.Duration = 1 * time.Millisecond
    	)
    	for {
    		err, mayRetry := f()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.5K bytes
    - Viewed (0)
Back to top