Skip to content

Commit

Permalink
Remove database initialization benchmark test from performance suite
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielluiz committed Nov 4, 2024
1 parent 43893c6 commit 2f5f87d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/backend/tests/performance/test_server_init.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio

import pytest
from langflow.services.deps import get_db_service, get_settings_service
from langflow.services.deps import get_settings_service


@pytest.mark.benchmark
Expand Down Expand Up @@ -59,10 +59,3 @@ async def test_load_flows():
from langflow.initial_setup.setup import load_flows_from_directory

await asyncio.to_thread(load_flows_from_directory)


@pytest.mark.benchmark
async def test_database_initialization():
"""Benchmark database initialization performance."""
result = await asyncio.to_thread(get_db_service)
assert result is not None

0 comments on commit 2f5f87d

Please # to comment.