We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64ccb59 commit c42645cCopy full SHA for c42645c
src/dsf/http.py
@@ -140,7 +140,8 @@ def close(self):
140
if self._loop is not None:
141
# TODO: this enables correctly ending the loop. Why?
142
self._loop.set_debug(True)
143
- self._server.close()
+ if self._server is not None:
144
+ self._server.close()
145
self._loop.stop()
146
self.event_loop.cancel()
147
self.executor.shutdown(wait=False)
tests/test_custom_http_endpoint.py
@@ -89,7 +89,7 @@ def test_custom_http_endpoint(self):
89
# Wait for mock DCS server to complete
90
self.server_thread.join(timeout=1)
91
92
- time.sleep(0.1)
+ time.sleep(1)
93
94
if endpoint is not None:
95
endpoint.close()
0 commit comments