mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-21 03:24:13 -05:00
Update integration-tests/go-sql-server-driver/sql_server_max_conns_test.go
Co-authored-by: Neil Macneale IV <46170177+macneale4@users.noreply.github.com>
This commit is contained in:
@@ -37,6 +37,11 @@ func TestSqlServerMaxConns(t *testing.T) {
|
||||
t.Run("MaxConns 3 MaxConnectionsTimeout 10s", testMaxConns3Timeout10s)
|
||||
}
|
||||
|
||||
// setupMaxConnsTest sets up a test "sql-server" with the provided arguments being cli arguments you would pass to
|
||||
// an actual server. Then it connects to the DB with 3 connections, simulating connections from 3 different clients.
|
||||
// Finally, it creates a two column table, "test_table", for tests to work with.
|
||||
//
|
||||
// DB and the 3 connections are returned, and the caller can close connections as needed in their test.
|
||||
func setupMaxConnsTest(t *testing.T, ctx context.Context, args ...string) (*sql.DB, []*sql.Conn) {
|
||||
t.Parallel()
|
||||
u, err := driver.NewDoltUser()
|
||||
|
||||
Reference in New Issue
Block a user