Skip to content

Commit

Permalink
Fix two cases
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Rico <[email protected]>
  • Loading branch information
SferaDev committed Aug 6, 2024
1 parent c176895 commit 6195f4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-client-drizzle/test/drizzle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ describe.concurrent.each([{ type: 'pg' }, { type: 'http' }])('Drizzle $type', ({
beforeEach(async (ctx) => {
ctx.branch = `test-${Math.random().toString(36).substring(7)}`;
await api.branch.createBranch({
pathParams: { workspace, region, dbBranchName: `${database}:${ctx.branch}` },
pathParams: { workspace, region, dbBranchName: `${dbName}:${ctx.branch}` },
body: { from: 'main' }
});

Expand All @@ -175,7 +175,7 @@ describe.concurrent.each([{ type: 'pg' }, { type: 'http' }])('Drizzle $type', ({

afterEach(async (ctx) => {
await ctx.client?.end();
await api.branch.deleteBranch({ pathParams: { workspace, region, dbBranchName: `${database}:${ctx.branch}` } });
await api.branch.deleteBranch({ pathParams: { workspace, region, dbBranchName: `${dbName}:${ctx.branch}` } });
});

/*
Expand Down

0 comments on commit 6195f4f

Please sign in to comment.