Skip to content

Commit

Permalink
Fix HTTP test by changing port
Browse files Browse the repository at this point in the history
  • Loading branch information
mthrok committed May 18, 2021
1 parent b8b732a commit 63f2bdf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/torchaudio_unittest/common_utils/case_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@ class HttpServerMixin(TempDirMixin):
The server is up through the execution of all the test suite defined under the subclass.
"""
_proc = None
_port = 8000
_port = 20576

@classmethod
def setUpClass(cls):
super().setUpClass()
cls._proc = subprocess.Popen(
['python', '-m', 'http.server', f'{cls._port}'],
cwd=cls.get_base_temp_dir())
cwd=cls.get_base_temp_dir(),
stderr=subprocess.DEVNULL) # Disable server-side error log because it is confusing
time.sleep(1.0)

@classmethod
Expand Down

0 comments on commit 63f2bdf

Please sign in to comment.