Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCacheIncreaseDoesNotBreakWatch (0.18 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go

    		location := i % cache.capacity
    		if cache.cache[location].Key != fmt.Sprintf("event-%d", i) {
    			return false
    		}
    	}
    	return true
    }
    
    func TestCacheIncreaseDoesNotBreakWatch(t *testing.T) {
    	store := newTestWatchCache(2, &cache.Indexers{})
    	defer store.Stop()
    
    	now := store.clock.Now()
    	addEvent := func(key string, rv uint64, t time.Time) {
    		event := &watchCacheEvent{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 35.4K bytes
    - Viewed (0)
Back to top