Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPendingConnsAfterErr (0.15 sec)

  1. src/database/sql/sql_test.go

    		t.Errorf("free conns = %d; want %d", g, w)
    	}
    }
    
    // Issue 10886: tests that all connection attempts return when more than
    // DB.maxOpen connections are in flight and the first DB.maxOpen fail.
    func TestPendingConnsAfterErr(t *testing.T) {
    	const (
    		maxOpen = 2
    		tryOpen = maxOpen*2 + 2
    	)
    
    	// No queries will be run.
    	db, err := Open("test", fakeDBName)
    	if err != nil {
    		t.Fatalf("Open: %v", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
Back to top