Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Test_newReady (0.12 sec)

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

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package cacher
    
    import (
    	"context"
    	"sync"
    	"testing"
    	"time"
    )
    
    func Test_newReady(t *testing.T) {
    	errCh := make(chan error, 10)
    	ready := newReady()
    	ready.set(false)
    	// create 10 goroutines waiting for ready
    	for i := 0; i < 10; i++ {
    		go func() {
    			errCh <- ready.wait(context.Background())
    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