Skip to content

Commit 02f5444

Browse files
committed
use a non-default port for streaming test so it can run with a live instance
1 parent e7e7ad7 commit 02f5444

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/integration/datanetwork/test_file_commands.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class FileCommands(CommandTestCase):
2121
def __init__(self, *a, **kw):
2222
super().__init__(*a, **kw)
2323
self.skip_libtorrent = False
24+
self.streaming_port = 60818
2425

2526
async def add_forever(self):
2627
while True:
@@ -56,11 +57,11 @@ async def initialize_torrent(self, tx_to_update=None):
5657
return tx, btih
5758

5859
async def assert_torrent_streaming_works(self, btih):
59-
url = f'http://{self.daemon.conf.streaming_host}:{self.daemon.conf.streaming_port}/get/torrent'
60+
url = f'http://{self.daemon.conf.streaming_host}:{self.streaming_port}/get/torrent'
6061
if self.daemon.streaming_runner.server is None:
6162
await self.daemon.streaming_runner.setup()
6263
site = aiohttp.web.TCPSite(self.daemon.streaming_runner, self.daemon.conf.streaming_host,
63-
self.daemon.conf.streaming_port)
64+
self.streaming_port)
6465
await site.start()
6566
async with aiohttp_request('get', url) as req:
6667
self.assertEqual(req.headers.get('Content-Type'), 'application/octet-stream')

0 commit comments

Comments
 (0)