Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestHandler (0.31 sec)

  1. pkg/kube/multicluster/secretcontroller_test.go

    				return slices.Map(component.All(), func(e testHandler) result {
    					return result{e.ID, e.Iter}
    				})
    			}, step.want)
    		})
    	}
    }
    
    type testHandler struct {
    	ID     cluster.ID
    	Iter   int
    	Closed *atomic.Bool
    	Synced *atomic.Bool
    }
    
    func (h testHandler) Close() {
    	h.Closed.Store(true)
    }
    
    func (h testHandler) HasSynced() bool {
    	return h.Synced.Load()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. internal/grid/grid_test.go

    		t.Log("client after", time.Since(clientEnd))
    	}
    	// local to remote, unbuffered
    	t.Run("unbuffered", func(t *testing.T) {
    		testHandler(t, handlerTest, false)
    	})
    	t.Run("buffered", func(t *testing.T) {
    		testHandler(t, handlerTest2, false)
    	})
    	t.Run("buffered", func(t *testing.T) {
    		testHandler(t, handlerTest2, true)
    	})
    }
    
    // testStreamDeadline will test if server
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top