Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCountingWriteOnceCancel (0.16 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/promise/counting_test.go

    	counter.Add(1) // account for unblocking the receive on doneCh
    	close(doneCh)
    	time.Sleep(time.Second) // give it a chance to misbehave
    	goGetAndExpect(t, clock, counter, wr, gots, aval)
    }
    func TestCountingWriteOnceCancel(t *testing.T) {
    	oldTime := time.Now()
    	cval := &oldTime
    	clock, counter := testeventclock.NewFake(oldTime, 0, nil)
    	ctx, cancel := context.WithCancel(context.Background())
    	var lock sync.Mutex
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 10 14:37:53 UTC 2021
    - 4.6K bytes
    - Viewed (0)
Back to top