mirror of https://github.com/citusdata/citus.git
Fixes coverage issue
parent
24380f80b9
commit
28cda815a3
|
@ -55,4 +55,3 @@ lib*.pc
|
|||
# style related temporary outputs
|
||||
*.uncrustify
|
||||
.venv
|
||||
test-cluster/*
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue