Skip to content

Commit

Permalink
Changed the scope=module to scope=session in streaming/streaming_test…
Browse files Browse the repository at this point in the history
….py.
  • Loading branch information
yhwen committed Nov 26, 2024
1 parent 5af9a2f commit eaa9e15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit_test/fuel/f3/streaming/streaming_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ def __init__(self):


class TestStreamCell:
@pytest.fixture(scope="module")
@pytest.fixture(scope="session")
def port(self):
return get_open_ports(1)[0]

@pytest.fixture(scope="module")
@pytest.fixture(scope="session")
def state(self):
return State()

@pytest.fixture(scope="module")
@pytest.fixture(scope="session")
def server_cell(self, port, state):
listening_url = f"tcp://localhost:{port}"
cell = CoreCell(RX_CELL, listening_url, secure=False, credentials={})
Expand All @@ -51,7 +51,7 @@ def server_cell(self, port, state):
yield stream_cell
cell.stop()

@pytest.fixture(scope="module")
@pytest.fixture(scope="session")
def client_cell(self, port, state):
connect_url = f"tcp://localhost:{port}"
cell = CoreCell(TX_CELL, connect_url, secure=False, credentials={})
Expand Down

0 comments on commit eaa9e15

Please sign in to comment.