Skip to content

Commit

Permalink
unit tests: enable multi-threaded HTTP webserver
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed May 14, 2023
1 parent c899963 commit e405f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class HttpServerThread(threading.Thread):
def __init__(self, handler, *args, **kwargs):
super().__init__(*args, **kwargs)
self.server = http.server.HTTPServer(("localhost", 7777), handler)
self.server = http.server.ThreadingHTTPServer(("localhost", 7777), handler)

def run(self):
self.server.serve_forever(poll_interval=0.001)
Expand Down

0 comments on commit e405f91

Please sign in to comment.