mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
ci: change postgres12 listen port (#521)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user