diff options
author | Nayana Bidari <nybidari@google.com> | 2020-01-10 09:05:25 -0800 |
---|---|---|
committer | Nayana Bidari <nybidari@google.com> | 2020-01-10 09:05:25 -0800 |
commit | 9aeb053bbaf834aab5b716b8645996943262b525 (patch) | |
tree | 839ff02eaa9d01a1374254bc165f5b3995703446 /test/iptables/iptables_test.go | |
parent | 04abc9cf558930472605bf740a4333d6fafe5930 (diff) |
Add tests for redirect port
Fix indentation and change function names.
Diffstat (limited to 'test/iptables/iptables_test.go')
-rw-r--r-- | test/iptables/iptables_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/iptables/iptables_test.go b/test/iptables/iptables_test.go index fce9247aa..05f27569f 100644 --- a/test/iptables/iptables_test.go +++ b/test/iptables/iptables_test.go @@ -178,14 +178,14 @@ func TestFilterInputDropDifferentUDPPort(t *testing.T) { } } -func TestFilterNATRedirectUDPPort(t *testing.T) { - if err := singleTest(FilterNATRedirectUDPPort{}); err != nil { +func TestNATRedirectUDPPort(t *testing.T) { + if err := singleTest(NATRedirectUDPPort{}); err != nil { t.Fatal(err) } } -func TestFilterNATDropUDP(t *testing.T) { - if err := singleTest(FilterNATDropUDP{}); err != nil { - t.Fatal(err) +func TestNATDropUDP(t *testing.T) { + if err := singleTest(NATDropUDP{}); err != nil { + t.Fatal(err) } } |