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

@@ -87,7 +87,7 @@ jobs:
environment: environment:
POSTGRES_DB: test POSTGRES_DB: test
POSTGRES_PASSWORD: pass POSTGRES_PASSWORD: pass
command: -p 5432 command: -p 5433
- image: entgo/gremlin-server - image: entgo/gremlin-server
entrypoint: /opt/gremlin-server/bin/gremlin-server.sh entrypoint: /opt/gremlin-server/bin/gremlin-server.sh
command: conf/gremlin-server.yaml command: conf/gremlin-server.yaml
@@ -102,7 +102,7 @@ jobs:
-wait tcp://localhost:3308 -wait tcp://localhost:3308
-wait tcp://localhost:5430 -wait tcp://localhost:5430
-wait tcp://localhost:5431 -wait tcp://localhost:5431
-wait tcp://localhost:5432 -wait tcp://localhost:5433
-wait tcp://localhost:8182 -wait tcp://localhost:8182
- *mktestdir - *mktestdir
- getmods - getmods

View File

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

View File

@@ -50,7 +50,7 @@ func TestMySQL(t *testing.T) {
} }
func TestPostgres(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) { t.Run(version, func(t *testing.T) {
dsn := fmt.Sprintf("host=localhost port=%d user=postgres password=pass sslmode=disable", port) dsn := fmt.Sprintf("host=localhost port=%d user=postgres password=pass sslmode=disable", port)
db, err := sql.Open(dialect.Postgres, dsn) db, err := sql.Open(dialect.Postgres, dsn)

View File

@@ -68,7 +68,7 @@ func TestMySQL(t *testing.T) {
} }
func TestPostgres(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) { 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) 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() defer client.Close()

View File

@@ -57,7 +57,7 @@ func TestMySQL(t *testing.T) {
} }
func TestPostgres(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) { t.Run(version, func(t *testing.T) {
dsn := fmt.Sprintf("host=localhost port=%d user=postgres password=pass sslmode=disable", port) dsn := fmt.Sprintf("host=localhost port=%d user=postgres password=pass sslmode=disable", port)
db, err := sql.Open(dialect.Postgres, dsn) db, err := sql.Open(dialect.Postgres, dsn)