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

SW-699: minor improvement

parent 4624e163
No related branches found
No related tags found
1 merge request!4Lofar release 4 0 minor fixes
...@@ -43,10 +43,6 @@ logger = logging.getLogger(__name__) ...@@ -43,10 +43,6 @@ logger = logging.getLogger(__name__)
TIMEOUT = 1.0 TIMEOUT = 1.0
if not can_connect_to_broker():
print("Cannot connect to default rabbitmq broker. Skipping test.")
exit(3)
class TestCreateDeleteFunctions(unittest.TestCase): class TestCreateDeleteFunctions(unittest.TestCase):
"""Test the various create/delete exchange/queue/binding funcions""" """Test the various create/delete exchange/queue/binding funcions"""
...@@ -770,11 +766,8 @@ def load_tests(loader, tests, ignore): ...@@ -770,11 +766,8 @@ def load_tests(loader, tests, ignore):
if __name__ == '__main__': if __name__ == '__main__':
logging.basicConfig(format='%(asctime)s %(thread)d %(threadName)s %(levelname)s %(message)s', level=logging.DEBUG) logging.basicConfig(format='%(asctime)s %(thread)d %(threadName)s %(levelname)s %(message)s', level=logging.DEBUG)
try: if not can_connect_to_broker():
with ToBus(): logger.error("Cannot connect to default rabbitmq broker. Skipping test.")
pass
except Exception as e:
print("Cannot run %s. Error: %s" % (__file__, e))
exit(3) exit(3)
unittest.main() unittest.main()
......
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