diff --git a/src/test/test_utils/spans_parser.py b/src/test/test_utils/spans_parser.py index 4ad17626..d21f06df 100644 --- a/src/test/test_utils/spans_parser.py +++ b/src/test/test_utils/spans_parser.py @@ -47,7 +47,7 @@ def get_spans_from_file( ) time.sleep(1) waited_time_in_sec += 1 - return SpansContainer(spans=spans) # noqa + return SpansContainer(spans=spans if spans else []) # noqa def get_first_root(self) -> Dict[str, Any]: return self.get_root_spans()[0]