Skip to content

Commit

Permalink
test(db): correct db unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rafasdc committed May 16, 2024
1 parent 257c122 commit 49ed0e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions db/test/unit/tables/cbc_data_test.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
begin;

select plan(8);
select plan(10);

-- Table exists
select has_table(
Expand Down Expand Up @@ -32,7 +32,7 @@ select table_privs_are(
);

select table_privs_are(
'ccbc_public', 'cbc_data', 'ccbc_analyst', ARRAY['SELECT', 'INSERT', 'UPDATE'],
'ccbc_public', 'cbc_data', 'ccbc_analyst', ARRAY['SELECT'],
'ccbc_analyst can select from cbc_data table'
);

Expand Down
2 changes: 1 addition & 1 deletion db/test/unit/tables/cbc_test.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ select table_privs_are(
);

select table_privs_are(
'ccbc_public', 'cbc', 'ccbc_analyst', ARRAY['SELECT', 'INSERT', 'UPDATE'],
'ccbc_public', 'cbc', 'ccbc_analyst', ARRAY['SELECT'],
'ccbc_analyst can select from cbc table'
);

Expand Down

0 comments on commit 49ed0e4

Please sign in to comment.