2
0

Initial pass at fixing pgtype tests

Many still failing, but at least it compiles now.
This commit is contained in:
Jack Christensen
2019-04-12 16:58:42 -05:00
parent 0ac82007fb
commit fcbd9e93fa
6 changed files with 33 additions and 25 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
package pgtype_test
import (
"context"
"reflect"
"testing"
@@ -11,7 +12,7 @@ import (
func TestHstoreArrayTranscode(t *testing.T) {
conn := testutil.MustConnectPgx(t)
defer testutil.MustClose(t, conn)
defer testutil.MustCloseContext(t, conn)
text := func(s string) pgtype.Text {
return pgtype.Text{String: s, Status: pgtype.Present}
@@ -77,7 +78,7 @@ func TestHstoreArrayTranscode(t *testing.T) {
}
var result pgtype.HstoreArray
err := conn.QueryRow("test", vEncoder).Scan(&result)
err := conn.QueryRow(context.Background(), "test", vEncoder).Scan(&result)
if err != nil {
t.Errorf("%v: %v", fc.name, err)
continue