mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-28 12:28:51 -06:00
fix: resolve the remote once, in main
This commit is contained in:
1 parent
4cb82adce3
commit
5436a45d4a
20 files changed
+331
-170
No files matched your search
@@ -75,7 +75,8 @@ class _Server:
|
||||
self.httpd = http.server.ThreadingHTTPServer(("127.0.0.1", 0), _RangeHandler)
|
||||
threading.Thread(target=self.httpd.serve_forever, daemon=True).start()
|
||||
port = self.httpd.server_address[1]
|
||||
self.patch = mock.patch.object(install, "RAW_FILE_URL", f"http://127.0.0.1:{port}/{{path}}")
|
||||
self.patch = mock.patch.object(install, "active_remote", return_value=install.Remote(
|
||||
install.DEFAULT_RELEASE_REF, f"http://127.0.0.1:{port}", False))
|
||||
self.patch.start()
|
||||
return self
|
||||
|
||||
|
||||
Reference in new issue
Block a user