Skip to content

Commit

Permalink
chore: update tests to use a new pg version (#3182)
Browse files Browse the repository at this point in the history
* chore: update dogfood to use a new pg version

* Update pg for cli e2e

* Fixing Order By queries on Test Suites
  • Loading branch information
danielbdias committed Sep 26, 2023
1 parent 235d073 commit 7c658f1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yaml
Expand Up @@ -32,7 +32,7 @@ services:
TRACETEST_DATASTOREPIPELINES_TESTCONNECTION_ENABLED: ${TRACETEST_DATASTOREPIPELINES_TESTCONNECTION_ENABLED}

postgres:
image: postgres:14
image: postgres:15.2
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
Expand Down
2 changes: 1 addition & 1 deletion server/testsuite/testsuite_repository.go
Expand Up @@ -273,7 +273,7 @@ func (r *Repository) Get(ctx context.Context, id id.ID) (TestSuite, error) {

func (r *Repository) get(ctx context.Context, id id.ID, augmented bool) (TestSuite, error) {
query, params := sqlutil.TenantWithPrefix(ctx, querySelect()+" WHERE t.id = $1", "t.", id)
stmt, err := r.db.Prepare(query + "ORDER BY t.version DESC LIMIT 1")
stmt, err := r.db.Prepare(query + " ORDER BY t.version DESC LIMIT 1")
if err != nil {
return TestSuite{}, fmt.Errorf("prepare: %w", err)
}
Expand Down
Expand Up @@ -28,7 +28,7 @@ services:
TRACETEST_DEV: ${TRACETEST_DEV}

postgres:
image: postgres:14
image: postgres:15.2
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
Expand Down
2 changes: 1 addition & 1 deletion testing/load/infra/docker-compose.yaml
Expand Up @@ -30,7 +30,7 @@ services:
TRACETEST_DEV: ${TRACETEST_DEV}

postgres:
image: postgres:14
image: postgres:15.2
restart: unless-stopped
environment:
POSTGRES_PASSWORD: postgres
Expand Down

0 comments on commit 7c658f1

Please sign in to comment.