Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testasync4 (0.11 sec)

  1. test/closedchan.go

    	func(c chan int) Chan { return SSChan(c) },
    }
    
    var testcloseds = []func(Chan) {
    	testasync1,
    	testasync2,
    	testasync3,
    	testasync4,
    }
    
    func main() {
    	for _, mk := range mks {
    		test1(mk(closedsync()))
    	}
    	
    	for _, testclosed := range testcloseds {
    		for _, mk := range mks {
    			testclosed(mk(closedasync()))
    		}
    	}
    	
    	var ch chan int	
    	shouldPanic(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 5.8K bytes
    - Viewed (0)
  2. pkg/queue/instance_test.go

    			t.Error()
    		}
    		q.Push(func() error {
    			taskComplete.Store(true)
    			return nil
    		})
    		if taskComplete.Load() {
    			t.Error("task ran on closed queue")
    		}
    	})
    }
    
    func TestSync(t *testing.T) {
    	handles := atomic.NewInt32(0)
    	task := func() error {
    		handles.Inc()
    		return nil
    	}
    	q := NewQueue(0)
    	q.Push(task)
    	stop := make(chan struct{})
    	go q.Run(stop)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 21 16:30:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. pilot/pkg/xds/debug_test.go

    	"istio.io/istio/istioctl/pkg/util/configdump"
    	"istio.io/istio/pilot/pkg/model"
    	"istio.io/istio/pilot/pkg/xds"
    	v3 "istio.io/istio/pilot/pkg/xds/v3"
    	xdsfake "istio.io/istio/pilot/test/xds"
    )
    
    func TestSyncz(t *testing.T) {
    	t.Run("return the sent and ack status of adsClient connections", func(t *testing.T) {
    		s := xdsfake.NewFakeDiscoveryServer(t, xdsfake.FakeOptions{})
    		ads := s.ConnectADS()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top