3
0
Преглед на файлове

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

Stefan Schmidt преди 6 години
родител
ревизия
39ac476c44
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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):