瀏覽代碼

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):