Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for expectSyncNotBlocked (0.36 sec)

  1. pkg/controller/resourcequota/resource_quota_controller_test.go

    	go qc.Sync(ctx, fakeDiscoveryClient.ServerPreferredNamespacedResources, 200*time.Millisecond)
    
    	// Wait until the sync discovers the initial resources
    	time.Sleep(1 * time.Second)
    
    	err = expectSyncNotBlocked(fakeDiscoveryClient, &qc.workerLock)
    	if err != nil {
    		t.Fatalf("Expected quotacontroller.Sync to be running but it is blocked: %v", err)
    	}
    	assertMonitors(t, qc, "pods", "deployments")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 16:29:33 UTC 2023
    - 42.6K bytes
    - Viewed (0)
  2. pkg/controller/garbagecollector/garbagecollector_test.go

    	// fakeDiscoveryClient are picked up.
    	go gc.Sync(tCtx, fakeDiscoveryClient, 200*time.Millisecond)
    
    	// Wait until the sync discovers the initial resources
    	time.Sleep(1 * time.Second)
    
    	err = expectSyncNotBlocked(fakeDiscoveryClient, &gc.workerLock)
    	if err != nil {
    		t.Fatalf("Expected garbagecollector.Sync to be running but it is blocked: %v", err)
    	}
    	assertMonitors(t, gc, "pods", "deployments")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
Back to top