Skip to content

Commit

Permalink
Set postgres enabled state via request body in E2E and drizzle next
Browse files Browse the repository at this point in the history
… tests (#1570)

Co-authored-by: Xata Bot <[email protected]>
Co-authored-by: github-merge-queue[bot] <github-merge-queue[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored and SferaDev committed Sep 12, 2024
1 parent 55ec264 commit 49febb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/utils/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ export async function setUpTestEnvironment(

const { databaseName: database } = await api.databases.createDatabase({
pathParams: { workspaceId: workspace, dbName: `sdk-integration-test-${prefix}-${id}` },
body: { region, defaultClusterID: clusterId },
headers: { 'X-Features': 'feat-pgroll-migrations=1' }
body: { region, defaultClusterID: clusterId, postgresEnabled: true }
});

const workspaceUrl = getHostUrl(host, 'workspaces').replace('{workspaceId}', workspace).replace('{region}', region);
Expand Down

0 comments on commit 49febb1

Please sign in to comment.