Skip to content

Commit 041b475

Browse files
Run metrics tests seq
1 parent f98d086 commit 041b475

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/metrics/test_queue.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ async def test_batch_queue_metrics(
5757
]
5858
)
5959

60-
import time
61-
62-
time.sleep(10)
63-
6460
metrics = await metrics_client.metrics()
6561
batch_request_queue = find_metric(metrics, metric_name)
6662
assert batch_request_queue is not None

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ commands_pre =
2121
commands =
2222
python -m pytest {posargs} -n auto \
2323
{toxinidir}/tests \
24+
--ignore={toxinidir}/tests/metrics \
2425
--ignore={toxinidir}/tests/kafka \
2526
--ignore={toxinidir}/tests/parallel \
2627
--ignore={toxinidir}/tests/grpc \
@@ -30,6 +31,7 @@ commands =
3031
# with the entire test suite. grpc, env, and cli tests are are also flaky
3132
# when running in parallel. So, we run them separately.
3233
python -m pytest {posargs} \
34+
{toxinidir}/tests/metrics \
3335
{toxinidir}/tests/kafka \
3436
{toxinidir}/tests/parallel \
3537
{toxinidir}/tests/grpc \
@@ -56,6 +58,7 @@ commands =
5658
{toxinidir}/runtimes/lightgbm \
5759
{toxinidir}/runtimes/mlflow \
5860
{toxinidir}/runtimes/huggingface \
61+
--ignore={toxinidir}/tests/metrics \
5962
--ignore={toxinidir}/tests/kafka \
6063
--ignore={toxinidir}/tests/parallel \
6164
--ignore={toxinidir}/tests/grpc \
@@ -65,6 +68,7 @@ commands =
6568
# with the entire test suite. grpc, env, and cli tests are are also flaky
6669
# when running in parallel. So, we run them separately.
6770
python -m pytest {posargs} \
71+
{toxinidir}/tests/metrics \
6872
{toxinidir}/tests/kafka \
6973
{toxinidir}/tests/parallel \
7074
{toxinidir}/tests/grpc \

0 commit comments

Comments
 (0)