Skip to content

Commit f054cde

Browse files
Update tests/e2e/utils/data_fetcher/logs.py
Co-authored-by: Heitor Lessa <[email protected]> Signed-off-by: Ruben Fonseca <[email protected]>
1 parent 76f2054 commit f054cde

File tree

1 file changed

+1
-1
lines changed
  • tests/e2e/utils/data_fetcher

1 file changed

+1
-1
lines changed

tests/e2e/utils/data_fetcher/logs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def get_logs(
150150
function_name=function_name, start_time=start_time, filter_expression=filter_expression, log_client=log_client
151151
)
152152

153-
if expected_number_of_logs is not None and len(log_fetcher) < expected_number_of_logs:
153+
if minimum_log_entries < len(log_fetcher):
154154
raise ValueError(f"expected {expected_number_of_logs} logs but only got ${len(log_fetcher)}")
155155

156156
return log_fetcher

0 commit comments

Comments
 (0)