Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestContextFromChannelAndMaxWaitDurationWithMaxWaitElapsed (0.44 sec)

  1. pkg/registry/flowcontrol/rest/storage_flowcontrol_test.go

    	close(stopCh)
    
    	<-ctx.Done()
    	if ctx.Err() != context.Canceled {
    		t.Errorf("Expected the context to be canceled with: %v, but got: %v", context.Canceled, ctx.Err())
    	}
    }
    
    func TestContextFromChannelAndMaxWaitDurationWithMaxWaitElapsed(t *testing.T) {
    	stopCh := make(chan struct{})
    	ctx, cancel := contextFromChannelAndMaxWaitDuration(stopCh, 100*time.Millisecond)
    	defer cancel()
    
    	<-ctx.Done()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 17 16:08:39 UTC 2021
    - 1.5K bytes
    - Viewed (0)
Back to top