Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Heinrich <[email protected]>
  • Loading branch information
andistorm committed Mar 6, 2024
1 parent 431bd47 commit 9a53fda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions everest-testing/src/everest/testing/core_utils/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ def test_controller(request, tmp_path, everest_core) -> EverestTestController:
test_controller.stop()

@pytest.fixture
def external_mqtt_client(everest_core: EverestCore) -> mqtt.Client:
def connected_mqtt_client(everest_core: EverestCore) -> mqtt.Client:
mqtt_server_uri = os.environ.get("MQTT_SERVER_ADDRESS", "127.0.0.1")
mqtt_server_uri += everest_core.mqtt_external_prefix
mqtt_server_port = int(os.environ.get("MQTT_SERVER_PORT", "1883"))
client = mqtt.Client(everest_core.everest_uuid)
client.connect(mqtt_server_uri, mqtt_server_port)
client.loop_start()

return client

0 comments on commit 9a53fda

Please sign in to comment.