Fixes coverage issue

test_branch
gindibay 2023-07-28 22:24:09 +03:00
parent 24380f80b9
commit 28cda815a3
3 changed files with 36 additions and 2 deletions

1
.gitignore vendored
View File

@ -55,4 +55,3 @@ lib*.pc
# style related temporary outputs
*.uncrustify
.venv
test-cluster/*

View File

@ -72,3 +72,23 @@ step s2-end:
step s1-end:
COMMIT;
starting permutation: s1-begin s1-node-not-found s1-end
step s1-begin:
BEGIN;
s1: NOTICE: Node not found.
step s1-node-not-found:
DO $$
BEGIN
select citus_pause_node(25000);
EXCEPTION
WHEN SQLSTATE 'P0002' THEN
RAISE NOTICE 'Node not found.';
END;
$$
LANGUAGE plpgsql;
step s1-end:
COMMIT;

View File

@ -42,6 +42,20 @@ step "s1-begin"
BEGIN;
}
step "s1-node-not-found"
{
DO $$
BEGIN
select citus_pause_node(25000);
EXCEPTION
WHEN SQLSTATE 'P0002' THEN
RAISE NOTICE 'Node not found.';
END;
$$
LANGUAGE plpgsql;
}
step "s1-pause-node"
{
SET client_min_messages = 'notice';
@ -129,4 +143,5 @@ step "s2-end"
COMMIT;
}
permutation "s1-begin" "s1-pause-node" "s2-begin" "s2-insert" "s2-end" "s1-end"
permutation "s1-begin" "s1-pause-node" "s2-begin" "s2-insert" "s2-end" "s1-end"
permutation "s1-begin" "s1-node-not-found" "s1-end"