From 653645b8c38cad58b0cfe4b0be4a74c3d20d1a00 Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Wed, 30 Jul 2025 12:51:56 -0700 Subject: [PATCH] Add simplified redundant test --- .../keywords/redundant-load-balance-no-dups | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/tests/keywords/redundant-load-balance-no-dups diff --git a/src/tests/keywords/redundant-load-balance-no-dups b/src/tests/keywords/redundant-load-balance-no-dups new file mode 100644 index 0000000000..e8e918626d --- /dev/null +++ b/src/tests/keywords/redundant-load-balance-no-dups @@ -0,0 +1,30 @@ +# PRE: if foreach +# +# Redundant blocks. +# +# Verify that only a single redundant child executes for redundant-load-balance +# +# This is a regression test, where we saw multiple children execute. This should +# in theory be caught by redundant-load-balance, but this is a simpler test to +# understand. +# +redundant-load-balance { + group { + request += { + Reply-Message = "A thing" + } + ok + } + group { + request += { + Reply-Message = "A second thing" + } + ok + } +} + +if (!(%{Reply-Message[#]} == 1)) { + test_fail +} + +success -- 2.47.2