Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. staging/src/k8s.io/apimachinery/pkg/util/wait/loop_test.go

    	select {
    	case <-doneCh:
    	case <-time.After(time.Second):
    		t.Fatalf("should have exited after a single loop")
    	}
    	if attempt != 1 {
    		t.Fatalf("expected attempt")
    	}
    }
    
    func Test_loopConditionUntilContext_semantic(t *testing.T) {
    	defaultCallback := func(_ int) (bool, error) {
    		return false, nil
    	}
    
    	conditionErr := errors.New("condition failed")
    
    	tests := []struct {
    		name               string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 02:48:08 UTC 2023
    - 15.8K bytes
    - Viewed (0)
Back to top