qa: Remove portseed_offset from test runner

This commit is contained in:
MarcoFalke 2018-06-07 11:30:58 -04:00
parent f8bcef38fb
commit fa6edfef35
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -419,10 +419,6 @@ class TestHandler:
self.test_list = test_list self.test_list = test_list
self.flags = flags self.flags = flags
self.num_running = 0 self.num_running = 0
# In case there is a graveyard of zombie bitcoinds, we can apply a
# pseudorandom offset to hopefully jump over them.
# (625 is PORT_RANGE/MAX_NODES)
self.portseed_offset = int(time.time() * 1000) % 625
self.jobs = [] self.jobs = []
def get_next(self): def get_next(self):
@ -430,7 +426,7 @@ class TestHandler:
# Add tests # Add tests
self.num_running += 1 self.num_running += 1
test = self.test_list.pop(0) test = self.test_list.pop(0)
portseed = len(self.test_list) + self.portseed_offset portseed = len(self.test_list)
portseed_arg = ["--portseed={}".format(portseed)] portseed_arg = ["--portseed={}".format(portseed)]
log_stdout = tempfile.SpooledTemporaryFile(max_size=2**16) log_stdout = tempfile.SpooledTemporaryFile(max_size=2**16)
log_stderr = tempfile.SpooledTemporaryFile(max_size=2**16) log_stderr = tempfile.SpooledTemporaryFile(max_size=2**16)