summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2017-03-20 13:47:55 +0100
committeranonym <anonym@riseup.net>2017-03-20 13:47:55 +0100
commita1aa113b149ea0b83a9bd091361fdad84ae14412 (patch)
tree5886679b8e0630d9890242a3501f0528f74e9f8c
parent112b34da0648706850d3f780dc620c8de444c33e (diff)
Test suite: fixup on possible fix for #11508.
Apparently PacketFu can raise NameError too, yay.
-rw-r--r--features/support/helpers/firewall_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/support/helpers/firewall_helper.rb b/features/support/helpers/firewall_helper.rb
index 62d9856..b608f7d 100644
--- a/features/support/helpers/firewall_helper.rb
+++ b/features/support/helpers/firewall_helper.rb
@@ -56,11 +56,11 @@ def pcap_connections_helper(pcap_file, opts = {})
begin
packet_info[:saddr] = ip_packet.ip_saddr
packet_info[:daddr] = ip_packet.ip_daddr
- rescue NoMethodError
+ rescue NoMethodError, NameError
begin
packet_info[:saddr] = ip_packet.ipv6_saddr
packet_info[:daddr] = ip_packet.ipv6_daddr
- rescue NoMethodError
+ rescue NoMethodError, NameError
puts "We were hit by #11508. PacketFu bug? Packet info: #{ip_packet}"
packet_info[:saddr] = nil
packet_info[:daddr] = nil