diff options
author | Kevin Krakauer <krakauer@google.com> | 2020-01-24 10:42:43 -0800 |
---|---|---|
committer | Kevin Krakauer <krakauer@google.com> | 2020-01-24 10:42:43 -0800 |
commit | 7636478a316692328097c9e70d38ff878539afb3 (patch) | |
tree | 637787744e7f6a10bb4a5acb926447d451cb500f /test/iptables | |
parent | b7853f688b4bcd3465c0c3087fcbd8d53bdf26ae (diff) | |
parent | 3db317390b5cc491d680fc4a5fc7b8372890b4da (diff) |
Merge branch 'master' into ipt-udp-matchers
Diffstat (limited to 'test/iptables')
-rw-r--r-- | test/iptables/iptables_util.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/iptables/iptables_util.go b/test/iptables/iptables_util.go index b40d0dc4f..043114c78 100644 --- a/test/iptables/iptables_util.go +++ b/test/iptables/iptables_util.go @@ -114,7 +114,7 @@ func connectTCP(ip net.IP, remotePort, localPort int, timeout time.Duration) err } // The container may not be listening when we first connect, so retry // upon error. - cb := func() error { + callback := func() error { localAddr := net.TCPAddr{ Port: localPort, } @@ -124,7 +124,7 @@ func connectTCP(ip net.IP, remotePort, localPort int, timeout time.Duration) err } return err } - if err := testutil.Poll(cb, timeout); err != nil { + if err := testutil.Poll(callback, timeout); err != nil { return fmt.Errorf("timed out waiting to send IP, most recent error: %v", err) } |