When 'loop getparams' fails, jq gets no stdin and exits with code 0. Because -o pipefail is not enabled in the testing shell, the whole test command succeeds, although it should fail. Just test "loop getparams" instead and ignore its output.
When 'loop getparams' fails, jq gets no stdin and exits with code 0. Because -o pipefail is not enabled in the testing shell, the whole test command succeeds, although it should fail. Just test "loop getparams" instead and ignore its output.