Commit d312b494 authored by Hamdi Allam's avatar Hamdi Allam

utilize postgres that is spun up in ci

parent 1b45cf6e
...@@ -95,7 +95,8 @@ func createE2ETestSuite(t *testing.T) E2ETestSuite { ...@@ -95,7 +95,8 @@ func createE2ETestSuite(t *testing.T) E2ETestSuite {
} }
func setupTestDatabase(t *testing.T) string { func setupTestDatabase(t *testing.T) string {
pg, err := sql.Open("pgx", "database=postgres") user := os.Getenv("DB_USER")
pg, err := sql.Open("pgx", fmt.Sprintf("postgres://%s@localhost:5432?sslmode=disable", user))
require.NoError(t, err) require.NoError(t, err)
require.NoError(t, pg.Ping()) require.NoError(t, pg.Ping())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment