Skip to content

Commit c2d2079

Browse files
committed
fix(policy): sql execution error with before()
1 parent 81924d9 commit c2d2079

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/build-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,6 @@ jobs:
7777
run: pnpm run lint
7878

7979
- name: Test
80+
env:
81+
TEST_DB_PROVIDER: ${{ matrix.provider }}
8082
run: TEST_DB_PROVIDER=${{ matrix.provider }} pnpm run test

tests/e2e/orm/policy/crud/post-update.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from 'vitest';
2-
import { createPolicyTestClient } from '@zenstackhq/testtools';
2+
import { createPolicyTestClient, getTestDbProvider } from '@zenstackhq/testtools';
33

44
describe('Policy post-update tests', () => {
55
it('allows post-update by default', async () => {
@@ -94,6 +94,7 @@ describe('Policy post-update tests', () => {
9494
});
9595

9696
it('works with before function', async () => {
97+
console.log('PROVIDER:', getTestDbProvider());
9798
const db = await createPolicyTestClient(
9899
`
99100
model Foo {

0 commit comments

Comments
 (0)