Skip to content

Commit 799ba46

Browse files
committed
fix(waiter): Add empty pattern check to wait_for_all_content
1 parent 2f2943e commit 799ba46

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libtmux/test/waiter.py

+4
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,10 @@ def has_at_least_5_lines(content):
973973
ContentMatchType.PREDICATE
974974
)
975975
"""
976+
if not content_patterns:
977+
msg = "At least one content pattern must be provided"
978+
raise ValueError(msg)
979+
976980
# Convert single match_type to list of same type
977981
if not isinstance(match_types, list):
978982
match_types = [match_types] * len(content_patterns)

0 commit comments

Comments
 (0)