mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2026-02-02 17:35:08 +01:00
Add default docker postgres password (#121)
Add a default user password to fix CI failures caused by [breaking upstream change](https://github.com/docker-library/postgres/pull/658) in `postgres` docker image.
Example error: 631760202
This commit is contained in:
parent
9a49f8ec93
commit
882c821c1d
2 changed files with 3 additions and 1 deletions
|
|
@ -18,3 +18,5 @@ services:
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:9.6
|
image: postgres:9.6
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: postgres
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,7 @@ func TestPostgresDatabaseExists_Error(t *testing.T) {
|
||||||
u.User = url.User("invalid")
|
u.User = url.User("invalid")
|
||||||
|
|
||||||
exists, err := drv.DatabaseExists(u)
|
exists, err := drv.DatabaseExists(u)
|
||||||
require.Equal(t, "pq: role \"invalid\" does not exist", err.Error())
|
require.Equal(t, "pq: password authentication failed for user \"invalid\"", err.Error())
|
||||||
require.Equal(t, false, exists)
|
require.Equal(t, false, exists)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue