- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestContextFromChannelAndMaxWaitDurationWithMaxWaitElapsed (0.34 sec)
-
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)