From 50b25f8c01f86e6467cd7228881163bdfeff2dbb Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 17 Dec 2024 21:20:19 +0100 Subject: [PATCH] random_words integration tests: avoid test failure due to valid result (#9271) Avoid test failure due to valid result. --- tests/integration/targets/lookup_random_words/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/targets/lookup_random_words/test.yml b/tests/integration/targets/lookup_random_words/test.yml index 90c6727304..e1b6fde13b 100644 --- a/tests/integration/targets/lookup_random_words/test.yml +++ b/tests/integration/targets/lookup_random_words/test.yml @@ -27,6 +27,7 @@ - result4[0] | length >= 17 - result4[0] | length <= 29 - result4[0] | regex_findall("[A-Z]") | length == 3 - - result4[0].count("-") == 2 + # If one of the random words is 't-shirt', there are more than 2 dashes... + - result4[0].count("-") == 2 or "t-shirt" in result4[0].lower() - result5 | length == 1 - result5[0] | length == 15