Skip to content

Commit

Permalink
Extra await to try and get tests to pass
Browse files Browse the repository at this point in the history
Refs #9, #12, #14
  • Loading branch information
simonw committed May 15, 2024
1 parent 13fdd35 commit b7f74eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "datasette-enrichments-gpt"
version = "0.4"
version = "0.5"
description = "Datasette enrichment for analyzing row data using OpenAI's GPT models"
readme = "README.md"
authors = [{name = "Simon Willison"}]
Expand Down
1 change: 1 addition & 0 deletions tests/test_enrichments_gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ async def test_enrichments_gpt(monkeypatch):
assert response2.status_code == 302
job_id = response2.headers["location"].split("=")[-1]
# Wait for it to finish
await asyncio.sleep(0.1)
await wait_for_job(ds, job_id, "test", timeout=10)
# Should have no errors
errors = [
Expand Down

0 comments on commit b7f74eb

Please sign in to comment.