Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 822 for Millisecond (0.14 sec)

  1. pkg/kubelet/util/node_startup_latency_tracker_test.go

    			bootTime:         frozenTime.Add(-100 * time.Millisecond),
    			kubeletStartTime: frozenTime,
    			clock:            fakeClock,
    		}
    
    		fakeClock.Step(800 * time.Millisecond)
    		tracker.RecordAttemptRegisterNode()
    
    		assert.Equal(t, frozenTime.Add(800*time.Millisecond), tracker.firstRegistrationAttemptTime)
    
    		fakeClock.Step(400 * time.Millisecond)
    		tracker.RecordRegisteredNewNode()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 05:54:25 UTC 2023
    - 18K bytes
    - Viewed (0)
  2. pkg/util/async/bounded_frequency_runner_test.go

    	// Run again, before minInterval expires.
    	timer.advance(500 * time.Millisecond) // rel=500ms
    	runner.Run()
    	waitForDefer("too soon after first", t, timer, obj, 500*time.Millisecond)
    
    	// Run again, before minInterval expires.
    	timer.advance(499 * time.Millisecond) // rel=999ms
    	runner.Run()
    	waitForDefer("still too soon after first", t, timer, obj, 1*time.Millisecond)
    
    	// Do the deferred run
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 15 09:36:26 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  3. src/runtime/mgclimit_test.go

    			t.Fatal("need update even though just updated")
    		}
    
    		// Test transitioning the bucket to enable the GC.
    
    		l.StartGCTransition(true, advance(109*time.Millisecond))
    		l.FinishGCTransition(advance(2*time.Millisecond + 1*time.Microsecond))
    
    		if expect := uint64((2*time.Millisecond + 1*time.Microsecond) * procs); l.Fill() != expect {
    			t.Fatalf("expected fill of %d, got %d cpu-ns", expect, l.Fill())
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 13 16:02:20 UTC 2022
    - 9K bytes
    - Viewed (0)
  4. pilot/pkg/model/jwks_resolver_test.go

    	}
    }
    
    func TestJwtPubKeyEvictionForNotUsed(t *testing.T) {
    	r := NewJwksResolver(
    		100*time.Millisecond, /*EvictionDuration*/
    		2*time.Millisecond,   /*RefreshInterval*/
    		2*time.Millisecond,   /*RefreshIntervalOnFailure*/
    		testRetryInterval,
    	)
    	defer r.Close()
    
    	ms := startMockServer(t)
    	defer ms.Stop()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  5. src/cmd/trace/testdata/testprog/main.go

    	allocHog(25 * time.Millisecond)
    
    	// checkProcStartStop relies on this.
    	var wg2 sync.WaitGroup
    	for i := 0; i < runtime.GOMAXPROCS(0); i++ {
    		wg2.Add(1)
    		go func() {
    			defer wg2.Done()
    			cpuHog(50 * time.Millisecond)
    		}()
    	}
    	wg2.Wait()
    
    	// checkSyscalls relies on this.
    	done := make(chan error)
    	go blockingSyscall(50*time.Millisecond, done)
    	if err := <-done; err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 17:15:58 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. pkg/cache/ttlCache_test.go

    	c := &callbackRecorder{callbacks: 0}
    	ttl := NewTTLWithCallback(50*time.Millisecond, time.Millisecond, c.callback)
    	testCacheEvicter(ttl)
    	if atomic.LoadInt64(&c.callbacks) != 1 {
    		t.Errorf("evictExpired() => failed to invoke EvictionCallback: got %d callbacks, wanted 1", c.callbacks)
    	}
    }
    
    func TestTTLFinalizer(t *testing.T) {
    	ttl := NewTTL(5*time.Second, 1*time.Millisecond).(*ttlWrapper)
    	testCacheFinalizer(&ttl.evicterTerminated)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  7. pkg/queue/delay_test.go

    		defer close(done)
    		t2 = time.Now()
    		return nil
    	}, 200*time.Millisecond)
    	dq.PushDelayed(func() error {
    		mu.Lock()
    		defer mu.Unlock()
    		t1 = time.Now()
    		return nil
    	}, 100*time.Millisecond)
    	dq.Push(func() error {
    		mu.Lock()
    		defer mu.Unlock()
    		t0 = time.Now()
    		return nil
    	})
    
    	select {
    	case <-time.After(500 * time.Millisecond):
    	case <-done:
    	}
    
    	mu.Lock()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 06:27:31 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  8. src/internal/trace/testdata/testprog/gomaxprocs.go

    	go func() {
    		for {
    			runtime.GC()
    			time.Sleep(1 * time.Millisecond)
    		}
    	}()
    
    	// Start tracing.
    	if err := trace.Start(os.Stdout); err != nil {
    		log.Fatalf("failed to start tracing: %v", err)
    	}
    	// Run GOMAXPROCS a bunch of times, up and down.
    	for i := 1; i <= 16; i *= 2 {
    		runtime.GOMAXPROCS(i)
    		time.Sleep(1 * time.Millisecond)
    	}
    	for i := 16; i >= 1; i /= 2 {
    		runtime.GOMAXPROCS(i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 967 bytes
    - Viewed (0)
  9. src/time/mono_test.go

    	sub("t1", "t2", t1, t1w, t2, t2w, -10*Millisecond, 990*Millisecond)
    	sub("t1", "t3", t1, t1w, t3, t3w, -1000*Millisecond, 0)
    
    	sub("t2", "t1", t2, t2w, t1, t1w, 10*Millisecond, -990*Millisecond)
    	sub("t2", "t2", t2, t2w, t2, t2w, 0, 0)
    	sub("t2", "t3", t2, t2w, t3, t3w, -990*Millisecond, -990*Millisecond)
    
    	sub("t3", "t1", t3, t3w, t1, t1w, 1000*Millisecond, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 19 17:10:49 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  10. internal/dsync/dsync_test.go

    	"github.com/google/uuid"
    )
    
    const (
    	testDrwMutexAcquireTimeout         = 250 * time.Millisecond
    	testDrwMutexRefreshCallTimeout     = 250 * time.Millisecond
    	testDrwMutexUnlockCallTimeout      = 250 * time.Millisecond
    	testDrwMutexForceUnlockCallTimeout = 250 * time.Millisecond
    	testDrwMutexRefreshInterval        = 100 * time.Millisecond
    )
    
    // TestMain initializes the testing framework
    func TestMain(m *testing.M) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 24 03:49:07 UTC 2022
    - 11K bytes
    - Viewed (0)
Back to top