Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCacheWatcherCleanupNotBlockedByResult (0.37 sec)

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

    	testingclock "k8s.io/utils/clock/testing"
    )
    
    // verifies the cacheWatcher.process goroutine is properly cleaned up even if
    // the writes to cacheWatcher.result channel is blocked.
    func TestCacheWatcherCleanupNotBlockedByResult(t *testing.T) {
    	var lock sync.RWMutex
    	var w *cacheWatcher
    	count := 0
    	filter := func(string, labels.Set, fields.Set) bool { return true }
    	forget := func(drainWatcher bool) {
    		lock.Lock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 22.9K bytes
    - Viewed (0)
Back to top