Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestConnIsValid (0.33 sec)

  1. src/database/sql/sql_test.go

    		t.Fatalf("got %q want %q", selectName, insertName)
    	}
    }
    
    // TestConnIsValid verifies that a database connection that should be discarded,
    // is actually discarded and does not re-enter the connection pool.
    // If the IsValid method from *fakeConn is removed, this test will fail.
    func TestConnIsValid(t *testing.T) {
    	db := newTestDB(t, "people")
    	defer closeDB(t, db)
    
    	db.SetMaxOpenConns(1)
    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