Skip to content

Commit

Permalink
Fix missing c2d env.
Browse files Browse the repository at this point in the history
  • Loading branch information
calina-c committed Nov 22, 2022
1 parent 0e3745e commit d4160dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ def web3():

@pytest.fixture
def free_c2d_env():
environments = get_c2d_environments()[8996]
environments = get_c2d_environments(flat=True)

return next(env for env in environments if float(env["priceMin"]) == float(0))


@pytest.fixture
def paid_c2d_env():
environments = get_c2d_environments()[8996]
environments = get_c2d_environments(flat=True)

return next(env for env in environments if env["id"] == "ocean-compute-env2")
2 changes: 1 addition & 1 deletion ocean_provider/routes/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def initializeCompute():
logger,
)

if not check_environment_exists(get_c2d_environments(), compute_env):
if not check_environment_exists(get_c2d_environments(flat=True), compute_env):
return error_response("Compute environment does not exist", 400, logger)

approve_params = {"datasets": []} if datasets else {}
Expand Down

0 comments on commit d4160dc

Please sign in to comment.