Explorar o código

MembersMgmtCommAttack: Fixed unwanted port-selector persistence (caused test failures when having multiple test-cases)

Stefan Schmidt %!s(int64=6) %!d(string=hai) anos
pai
achega
39ac476c44
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code/Attack/MembersMgmtCommAttack.py

+ 1 - 1
code/Attack/MembersMgmtCommAttack.py

@@ -568,7 +568,7 @@ class MembersMgmtCommAttack(BaseAttack.BaseAttack):
         assign_realistic_timestamps(messages, external_ids, local_ids, avg_delay_local, avg_delay_external,
                                     zero_reference)
 
-        port_selector = PortSelectors.LINUX
+        port_selector = PortSelectors.LINUX.clone()
         reserved_ports = set(int(line.strip()) for line in open(Util.RESOURCE_DIR + "reserved_ports.txt").readlines())
 
         def filter_reserved(get_port):