Updated tests

This commit is contained in:
Mark Qvist 2025-01-13 15:42:32 +01:00
parent 330c2aacac
commit cd0f82d9ad

View File

@ -333,7 +333,7 @@ class TestLink(unittest.TestCase):
resource_size = 5*1000*1000
data = os.urandom(resource_size)
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()
# 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
data = os.urandom(resource_size)
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()
TestLink.large_resource_status = resource.status