fix tests

This commit is contained in:
Jack 2016-08-26 20:22:11 -04:00
parent be3633622c
commit aa66af7ba6
3 changed files with 5 additions and 4 deletions

View file

@ -1359,7 +1359,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
reflector_server = random.choice(REFLECTOR_SERVERS) reflector_server = random.choice(REFLECTOR_SERVERS)
reflector_address, reflector_port = reflector_server[0], reflector_server[1] reflector_address, reflector_port = reflector_server[0], reflector_server[1]
log.info("Start reflector client") log.info("Start reflector client")
factory = reflector.LBRYFileReflectorClientFactory( factory = reflector.ClientFactory(
self.session.blob_manager, self.session.blob_manager,
self.lbry_file_manager.stream_info_manager, self.lbry_file_manager.stream_info_manager,
stream_hash stream_hash
@ -1378,7 +1378,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
reflector_server = random.choice(REFLECTOR_SERVERS) reflector_server = random.choice(REFLECTOR_SERVERS)
reflector_address, reflector_port = reflector_server[0], reflector_server[1] reflector_address, reflector_port = reflector_server[0], reflector_server[1]
log.info("Start reflector client") log.info("Start reflector client")
factory = reflector.LBRYBlobReflectorClientFactory( factory = reflector.BlobClientFactory(
self.session.blob_manager, self.session.blob_manager,
blob_hashes blob_hashes
) )

View file

@ -78,7 +78,7 @@ class Publisher(object):
reflector_server = random.choice(REFLECTOR_SERVERS) reflector_server = random.choice(REFLECTOR_SERVERS)
reflector_address, reflector_port = reflector_server[0], reflector_server[1] reflector_address, reflector_port = reflector_server[0], reflector_server[1]
log.info("Reflecting new publication") log.info("Reflecting new publication")
factory = reflector.LBRYFileReflectorClientFactory( factory = reflector.ClientFactory(
self.session.blob_manager, self.session.blob_manager,
self.lbry_file_manager.stream_info_manager, self.lbry_file_manager.stream_info_manager,
self.stream_hash self.stream_hash

View file

@ -1,2 +1,3 @@
from lbrynet.reflector.server.server import ReflectorServerFactory as ServerFactory from lbrynet.reflector.server.server import ReflectorServerFactory as ServerFactory
from lbrynet.reflector.client.client import LBRYFileReflectorClientFactory, LBRYBlobReflectorClientFactory from lbrynet.reflector.client.client import LBRYFileReflectorClientFactory as ClientFactory
from lbrynet.reflector.client.client import LBRYBlobReflectorClientFactory as BlobClientFactory