Skip to content

Commit 30a312f

Browse files
committed
Fix HTTP test by changing port
1 parent 52e7bfd commit 30a312f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/torchaudio_unittest/common_utils/case_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,15 @@ class HttpServerMixin(TempDirMixin):
5252
The server is up through the execution of all the test suite defined under the subclass.
5353
"""
5454
_proc = None
55-
_port = 8000
55+
_port = 20576
5656

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

6566
@classmethod

0 commit comments

Comments
 (0)