Skip to content
Snippets Groups Projects
Commit 313ad02d authored by Wout De Nolf's avatar Wout De Nolf
Browse files

[test] hanging fixtures

parent 7e630d4b
No related branches found
No related tags found
No related merge requests found
......@@ -237,7 +237,8 @@ def beacon(ports):
client._default_connection = connection.Connection("localhost", ports.beacon_port)
config = static.get_config()
yield config
config.close()
with gevent.Timeout(10):
config.close()
client._default_connection.close()
# Ensure no connections are created due to garbage collection:
client._default_connection = None
......@@ -389,7 +390,8 @@ def machinfo_tango_server(ports, beacon):
@pytest.fixture
def session(beacon, scan_tmpdir):
session = beacon.get("test_session")
session.setup()
with gevent.Timeout(10):
session.setup()
session.scan_saving.base_path = str(scan_tmpdir)
yield session
session.close()
......
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