2
0

Remove unused pgmock code

This commit is contained in:
Jack Christensen
2019-08-31 13:13:45 -05:00
parent 53921a0a22
commit 04a0609876
2 changed files with 0 additions and 349 deletions
-19
View File
@@ -13,9 +13,7 @@ import (
"time"
"github.com/jackc/pgconn"
"github.com/jackc/pgproto3/v2"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgmock"
"github.com/jackc/pgx/v4/stdlib"
)
@@ -667,23 +665,6 @@ func TestBeginTxContextCancel(t *testing.T) {
ensureConnValid(t, db)
}
func acceptStandardPgxConn(backend *pgproto3.Backend) error {
script := pgmock.Script{
Steps: pgmock.AcceptUnauthenticatedConnRequestSteps(),
}
err := script.Run(backend)
if err != nil {
return err
}
typeScript := pgmock.Script{
Steps: pgmock.PgxInitSteps(),
}
return typeScript.Run(backend)
}
func TestAcquireConn(t *testing.T) {
db := openDB(t)
defer closeDB(t, db)