From 2d67459aee79bc15ca75a8b38a8b453d31404e9a Mon Sep 17 00:00:00 2001 From: Aaron Son Date: Thu, 27 Mar 2025 14:28:03 -0700 Subject: [PATCH] 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> --- .../go-sql-server-driver/sql_server_max_conns_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/integration-tests/go-sql-server-driver/sql_server_max_conns_test.go b/integration-tests/go-sql-server-driver/sql_server_max_conns_test.go index 3034ffa596..78176aad0c 100644 --- a/integration-tests/go-sql-server-driver/sql_server_max_conns_test.go +++ b/integration-tests/go-sql-server-driver/sql_server_max_conns_test.go @@ -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()