Skip to content
Snippets Groups Projects
Commit bee92011 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-516: fixed OTDB_Services tests for python3 and messagebus changes. Also...

SW-516: fixed OTDB_Services tests for python3 and messagebus changes. Also made the test test against a local testing postgres database. All contained in python, no hybrid .run/.py tests anymore.
parent 5cbba55b
No related branches found
No related tags found
No related merge requests found
......@@ -95,10 +95,13 @@ def main():
# Set signalhandler to stop the program in a neat way.
signal.signal(signal.SIGINT, signal_handler)
create_service(options.busname, dbcreds)
def create_service(busname, dbcreds):
alive = True
connected = False
otdb_connection = None
with ToBus(options.busname) as send_bus:
with ToBus(busname) as send_bus:
while alive:
while alive and not connected:
# Connect to the database
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment