File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
tests/integration/datanetwork Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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' )
You can’t perform that action at this time.
0 commit comments