3c431a3952415c49676954d534d00599f04b1f4e,perfkitbenchmarker/vpn_service.py,VPN,isTunnelReady,#VPN#,142

Before Change


    while(not ready and time.time() < timeout):
      logging.info("Tunnel endpoints configured. Waiting for tunnel...")
      ready = benchmark_spec.vpn_gateways[self.GWPair[0]].IsTunnelReady(self.tunnel_config.endpoints[self.GWPair[0]]["tunnel_id"]) and benchmark_spec.vpn_gateways[self.GWPair[1]].IsTunnelReady(self.tunnel_config.endpoints[self.GWPair[1]]["tunnel_id"])
      time.sleep(5)

    return ready

After Change


    logging.info("Tunnel endpoints configured. Waiting for tunnel...")
    ready = benchmark_spec.vpn_gateways[self.GWPair[0]].IsTunnelReady(self.tunnel_config.endpoints[self.GWPair[0]]["tunnel_id"]) and benchmark_spec.vpn_gateways[self.GWPair[1]].IsTunnelReady(self.tunnel_config.endpoints[self.GWPair[1]]["tunnel_id"])
    if not ready:
      raise errors.Resource.RetryableCreationError()

    return ready

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 3c431a3952415c49676954d534d00599f04b1f4e
Time: 2020-04-01
Author: mzaber@smu.edu
File Name: perfkitbenchmarker/vpn_service.py
Class Name: VPN
Method Name: isTunnelReady


Project Name: BYU-PCCL/holodeck
Commit Name: f95b70a0737f0c9f0a69d3bb478b17cce4cfe855
Time: 2018-01-04
Author: joshua.greaves@gmail.com
File Name: Holodeck/Environments.py
Class Name: HolodeckEnvironment
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 1f554c8ca1fc56b4830091d7c75aac3056785e9e
Time: 2016-05-26
Author: kwilson@twopensource.com
File Name: src/python/pants/pantsd/subsystem/watchman_launcher.py
Class Name: WatchmanLauncher
Method Name: maybe_launch