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:
@@ -64,7 +64,7 @@ services:
|
||||
healthcheck:
|
||||
test: pg_isready -U postgres
|
||||
ports:
|
||||
- 5432:5432
|
||||
- 5433:5432
|
||||
|
||||
gremlin:
|
||||
image: entgo/gremlin-server
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user