Fix tests about local compute node

This commit is contained in:
Julien Duponchelle
2016-08-23 22:40:26 +02:00
parent 9231b8e991
commit bfabf3ddc8
7 changed files with 54 additions and 75 deletions

View File

@ -96,10 +96,6 @@ class Compute:
# Websocket for notifications
self._ws = None
# It's a configuration issue if the compute is not configured to be local but the compute id is local
if compute_id == "local" and Config.instance().get_section_config("Server")["local"] is False:
raise ComputeError("The local compute is started without --local")
def _session(self):
if self._http_session is None or self._http_session.closed is True:
self._http_session = aiohttp.ClientSession()