Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Test_newReadyCancelPending (0.2 sec)

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

    		t.Errorf("unexpected ready state %v", ready.check())
    	}
    	err := ready.wait(context.Background())
    	if err == nil {
    		t.Errorf("expected error waiting on a stopped state")
    	}
    }
    
    func Test_newReadyCancelPending(t *testing.T) {
    	errCh := make(chan error, 10)
    	ready := newReady()
    	ready.set(false)
    	ctx, cancel := context.WithCancel(context.Background())
    	// create 10 goroutines stuck on pending
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 16 13:32:11 UTC 2023
    - 4.6K bytes
    - Viewed (0)
Back to top