mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-01-18 16:30:33 +00:00
Updated tests
This commit is contained in:
parent
330c2aacac
commit
cd0f82d9ad
@ -333,7 +333,7 @@ class TestLink(unittest.TestCase):
|
|||||||
resource_size = 5*1000*1000
|
resource_size = 5*1000*1000
|
||||||
data = os.urandom(resource_size)
|
data = os.urandom(resource_size)
|
||||||
print("Sending "+self.size_str(resource_size)+" resource...")
|
print("Sending "+self.size_str(resource_size)+" resource...")
|
||||||
resource = RNS.Resource(data, l1, timeout=resource_timeout)
|
resource = RNS.Resource(data, l1, timeout=resource_timeout, auto_compress=False)
|
||||||
start = time.time()
|
start = time.time()
|
||||||
|
|
||||||
# This is a hack, don't do it. Use the callbacks instead.
|
# This is a hack, don't do it. Use the callbacks instead.
|
||||||
@ -380,7 +380,7 @@ class TestLink(unittest.TestCase):
|
|||||||
resource_size = 50*1000*1000
|
resource_size = 50*1000*1000
|
||||||
data = os.urandom(resource_size)
|
data = os.urandom(resource_size)
|
||||||
print("Sending "+self.size_str(resource_size)+" resource...")
|
print("Sending "+self.size_str(resource_size)+" resource...")
|
||||||
resource = RNS.Resource(data, l1, timeout=resource_timeout, callback=self.lr_callback)
|
resource = RNS.Resource(data, l1, timeout=resource_timeout, callback=self.lr_callback, auto_compress=False)
|
||||||
start = time.time()
|
start = time.time()
|
||||||
|
|
||||||
TestLink.large_resource_status = resource.status
|
TestLink.large_resource_status = resource.status
|
||||||
|
Loading…
Reference in New Issue
Block a user