Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for waitCondition (0.28 sec)

  1. src/net/http/transport_test.go

    			t.Fatalf("%s: %v", name, err)
    		}
    		t.Logf("%s: ok (%q)", name, slurp)
    	}
    
    	doReq("first")
    	keys1 := tr.IdleConnKeysForTesting()
    
    	ts.CloseClientConnections()
    
    	var keys2 []string
    	waitCondition(t, 10*time.Millisecond, func(d time.Duration) bool {
    		keys2 = tr.IdleConnKeysForTesting()
    		if len(keys2) != 0 {
    			if d > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  2. src/net/http/serve_test.go

    		t.Errorf("found %d idle conns (%q); want 1", len(conns), conns)
    	}
    
    	// SetKeepAlivesEnabled should discard idle conns.
    	ts.Config.SetKeepAlivesEnabled(false)
    
    	waitCondition(t, 10*time.Millisecond, func(d time.Duration) bool {
    		if conns := tr.IdleConnStrsForTesting(); len(conns) > 0 {
    			if d > 0 {
    				t.Logf("idle conns %v after SetKeepAlivesEnabled called = %q; waiting for empty", d, conns)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  3. pkg/controller/job/job_controller_test.go

    			if tc.wantConditions != nil {
    				for _, wantCondition := range *tc.wantConditions {
    					conditions := getConditionsByType(actual.Status.Conditions, wantCondition.Type)
    					if len(conditions) != 1 {
    						t.Fatalf("Expected a single completion condition. Got %#v for type: %q", conditions, wantCondition.Type)
    					}
    					condition := *conditions[0]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
Back to top