Skip to content

Commit 84ed166

Browse files
committed
test: calling twice the cloudsync_init function on postgresql is failing (WIP)
1 parent b891e33 commit 84ed166

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docker/postgresql/smoke_test.sql

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ SELECT (length(cloudsync_uuid()) > 0) AS uuid_ok \gset
2222
-- Enable debug logs
2323
SET client_min_messages = debug1; SET log_min_messages = debug1;
2424

25-
-- Enable debug logs
26-
-- SET client_min_messages = debug1; SET log_min_messages = debug1;
27-
2825
-- Init on a simple table should succeed
2926
SELECT cloudsync_cleanup('smoke_tbl');
3027
DROP TABLE IF EXISTS smoke_tbl;
@@ -37,4 +34,9 @@ SELECT (length(encode(cloudsync_siteid()::bytea, 'hex')) > 0) AS sid_ok \gset
3734
\if :sid_ok
3835
\else
3936
\quit 1
40-
\endif
37+
\endif
38+
39+
-- test double init, should be a no-op
40+
SELECT cloudsync_init('smoke_tbl', 'CLS', true);
41+
42+
SELECT cloudsync_cleanup('smoke_tbl');

0 commit comments

Comments
 (0)