Skip to content

Commit

Permalink
Attempt to fix ephemeral API test
Browse files Browse the repository at this point in the history
Failing consistently on SQLite Python 3.10
  • Loading branch information
zanieb committed Oct 6, 2022
1 parent c7f469c commit f90fe51
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/test_deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,16 +566,21 @@ async def test_running_a_deployment_blocks_until_termination_async(
)
assert len(flow_polls.calls) == 3

def test_ephemeral_api_works(
async def test_run_deployment_with_ephemeral_api(
self,
test_deployment,
orion_client,
):
d, deployment_id = test_deployment

assert run_deployment(
f"{d.flow_name}/{d.name}", timeout=2, poll_interval=0
).state
flow_run = await run_deployment(
f"{d.flow_name}/{d.name}",
timeout=2,
poll_interval=0,
client=orion_client,
)
assert flow_run.deployment_id == deployment_id
assert flow_run.state

def test_returns_flow_run_on_timeout(
self,
Expand Down

0 comments on commit f90fe51

Please sign in to comment.