Sfoglia il codice sorgente

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

Stefan Schmidt 6 anni fa
parent
commit
39ac476c44
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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):