Updating golang dependancies (#4075)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6d62d65b2d
Коммит
2ca0e8f9a0
16
vendor/github.com/lib/pq/conn_test.go
сгенерированный
поставляемый
16
vendor/github.com/lib/pq/conn_test.go
сгенерированный
поставляемый
@@ -138,6 +138,10 @@ func TestOpenURL(t *testing.T) {
|
||||
const pgpass_file = "/tmp/pqgotest_pgpass"
|
||||
|
||||
func TestPgpass(t *testing.T) {
|
||||
if os.Getenv("TRAVIS") != "true" {
|
||||
t.Skip("not running under Travis, skipping pgpass tests")
|
||||
}
|
||||
|
||||
testAssert := func(conninfo string, expected string, reason string) {
|
||||
conn, err := openTestConnConninfo(conninfo)
|
||||
if err != nil {
|
||||
@@ -186,7 +190,17 @@ localhost:*:*:*:pass_C
|
||||
pgpass.Close()
|
||||
|
||||
assertPassword := func(extra values, expected string) {
|
||||
o := &values{"host": "localhost", "sslmode": "disable", "connect_timeout": "20", "user": "majid", "port": "5432", "extra_float_digits": "2", "dbname": "pqgotest", "client_encoding": "UTF8", "datestyle": "ISO, MDY"}
|
||||
o := &values{
|
||||
"host": "localhost",
|
||||
"sslmode": "disable",
|
||||
"connect_timeout": "20",
|
||||
"user": "majid",
|
||||
"port": "5432",
|
||||
"extra_float_digits": "2",
|
||||
"dbname": "pqgotest",
|
||||
"client_encoding": "UTF8",
|
||||
"datestyle": "ISO, MDY",
|
||||
}
|
||||
for k, v := range extra {
|
||||
(*o)[k] = v
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user