Skip to content

Commit

Permalink
tests: remember to exit loop for fake worker
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Jul 7, 2024
1 parent 8097e56 commit b63dc1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/ai_horde_api/test_ai_worker_roundtrip_api_calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,10 @@ async def fake_worker(
)

assert isinstance(job_submit_response, JobSubmitResponse)

assert job_submit_response.reward is not None and job_submit_response.reward > 0

break

@pytest.mark.api_side_ci
@pytest.mark.asyncio
async def test_basic_image_roundtrip(self, simple_image_gen_request: ImageGenerateAsyncRequest) -> None:
Expand Down

0 comments on commit b63dc1d

Please sign in to comment.