ci: change postgres12 listen port (#521)

This commit is contained in:
Ariel Mashraki
2020-06-03 15:33:56 +03:00
committed by GitHub
parent fff0b1a9ed
commit abc4e63efb
5 changed files with 6 additions and 6 deletions

View File

@@ -64,7 +64,7 @@ services:
healthcheck:
test: pg_isready -U postgres
ports:
- 5432:5432
- 5433:5432
gremlin:
image: entgo/gremlin-server

View File

@@ -50,7 +50,7 @@ func TestMySQL(t *testing.T) {
}
func TestPostgres(t *testing.T) {
for version, port := range map[string]int{"10": 5430, "11": 5431, "12": 5432} {
for version, port := range map[string]int{"10": 5430, "11": 5431, "12": 5433} {
t.Run(version, func(t *testing.T) {
dsn := fmt.Sprintf("host=localhost port=%d user=postgres password=pass sslmode=disable", port)
db, err := sql.Open(dialect.Postgres, dsn)

View File

@@ -68,7 +68,7 @@ func TestMySQL(t *testing.T) {
}
func TestPostgres(t *testing.T) {
for version, port := range map[string]int{"10": 5430, "11": 5431, "12": 5432} {
for version, port := range map[string]int{"10": 5430, "11": 5431, "12": 5433} {
t.Run(version, func(t *testing.T) {
client := enttest.Open(t, dialect.Postgres, fmt.Sprintf("host=localhost port=%d user=postgres dbname=test password=pass sslmode=disable", port), opts)
defer client.Close()

View File

@@ -57,7 +57,7 @@ func TestMySQL(t *testing.T) {
}
func TestPostgres(t *testing.T) {
for version, port := range map[string]int{"10": 5430, "11": 5431, "12": 5432} {
for version, port := range map[string]int{"10": 5430, "11": 5431, "12": 5433} {
t.Run(version, func(t *testing.T) {
dsn := fmt.Sprintf("host=localhost port=%d user=postgres password=pass sslmode=disable", port)
db, err := sql.Open(dialect.Postgres, dsn)