Skip to content

Commit

Permalink
try to fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjoyo committed Feb 1, 2024
1 parent efe485d commit 2db91eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bpm-ai-connectors-c8/bpm_ai_connectors_c8/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def main(host=None, port=None):

logger.debug(worker.tasks)

logger.info(f"Starting connector worker.")
logger.info("Starting connector worker.")
await worker.work()
logger.info("Exited connector worker.")

Expand Down
4 changes: 2 additions & 2 deletions bpm-ai-connectors-c8/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class Starter(ProcessStarter):
def connector_runtime(xprocess, zeebe_test_engine):
class Starter(ProcessStarter):
pattern = "Starting connector worker"
popen_kwargs = {"cwd": "../bpm_ai_connectors_c8"}
args = ['python', 'main.py', '--host', zeebe_test_engine.host, '--port', zeebe_test_engine.engine_port]
popen_kwargs = {"cwd": ".."}
args = ['python', '-m' 'bpm_ai_connectors_c8.main', '--host', zeebe_test_engine.host, '--port', zeebe_test_engine.engine_port]

xprocess.ensure("connector_runtime", Starter)
yield
Expand Down

0 comments on commit 2db91eb

Please sign in to comment.