Skip to content

Commit

Permalink
Allow for ert4 or ert5 storage service
Browse files Browse the repository at this point in the history
  • Loading branch information
kwinkunks committed May 31, 2023
1 parent 4660382 commit 91a53de
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/data/spe1_st/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@

@pytest.fixture(scope="session", autouse=True)
def start_storage_server():
from ert.services import StorageService
try:
from ert.services import StorageService as Storage
except ImportError:
from ert.services import Storage

with StorageService.start_server() as service:
with Storage.start_server() as service:
service.wait_until_ready(timeout=30)
yield service

0 comments on commit 91a53de

Please sign in to comment.