test: Relax component loading test timeouts (#9588)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
efb554ad2a
commit
e441dd80ed
1 changed files with 3 additions and 3 deletions
|
|
@ -64,9 +64,9 @@ class TestComponentLoading:
|
||||||
print(f"aget_all_types_dict: {all_types_duration:.4f}s")
|
print(f"aget_all_types_dict: {all_types_duration:.4f}s")
|
||||||
print(f"Ratio (langflow/all_types): {langflow_duration / max(all_types_duration, 0.0001):.2f}")
|
print(f"Ratio (langflow/all_types): {langflow_duration / max(all_types_duration, 0.0001):.2f}")
|
||||||
|
|
||||||
# Both should complete in reasonable time (< 5s for langflow, < 15s for all_types)
|
# Both should complete in reasonable time (< 10s for langflow, < 20s for all_types)
|
||||||
assert langflow_duration < 5.0, f"get_langflow_components_list took too long: {langflow_duration}s"
|
assert langflow_duration < 10.0, f"get_langflow_components_list took too long: {langflow_duration}s"
|
||||||
assert all_types_duration < 15.0, f"aget_all_types_dict took too long: {all_types_duration}s"
|
assert all_types_duration < 20.0, f"aget_all_types_dict took too long: {all_types_duration}s"
|
||||||
|
|
||||||
# Store results for further analysis
|
# Store results for further analysis
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue