2
0

pgconn and pgproto use same environment variable for tests as pgx

This commit is contained in:
Jack Christensen
2022-10-29 13:23:25 -05:00
parent c9c166b8b2
commit 1ec3816a20
7 changed files with 80 additions and 87 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ func TestTrace(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
conn, err := pgconn.Connect(ctx, os.Getenv("PGX_TEST_CONN_STRING"))
conn, err := pgconn.Connect(ctx, os.Getenv("PGX_TEST_DATABASE"))
require.NoError(t, err)
defer conn.Close(ctx)