Skip to content

Commit 7f36e2d

Browse files
committed
Use experiment's metrics API
1 parent 2ce9ca8 commit 7f36e2d

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

tests/integrations/test_standalone_lifecycle.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,6 @@ def test_resume_experiment():
257257
@pytest.mark.cloud()
258258
def test_resume_old_experiment():
259259
"""Resume an experiment that has many newer experiments in the same teamspace."""
260-
from litlogger.api.metrics_api import MetricsApi
261-
262260
target_name = f"standalone_resume_old-{uuid.uuid4().hex}"
263261
filler_prefix = f"standalone_resume_old_filler-{uuid.uuid4().hex}"
264262

@@ -269,10 +267,8 @@ def test_resume_old_experiment():
269267
project_id = exp1._teamspace.id
270268
target_stream_id = exp1._metrics_store.id
271269

272-
# Use an unlimited-retry client so that 429s under parallel test load are
273-
# absorbed by the client's exponential backoff instead of failing the test.
274270
client = LitRestClient(max_retries=-1)
275-
api = MetricsApi(client=client)
271+
api = exp1._metrics_api
276272

277273
filler_ids: list[str] = []
278274
try:

0 commit comments

Comments
 (0)