Fix go vet warnings

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
This commit is contained in:
Alexandr Morozov
2014-08-13 11:37:30 +04:00
parent 64579f51fc
commit 391c35c822
8 changed files with 24 additions and 13 deletions
@@ -1,11 +1,12 @@
package portmapper
import (
"net"
"testing"
"github.com/docker/docker/daemon/networkdriver/portallocator"
"github.com/docker/docker/pkg/iptables"
"github.com/docker/docker/pkg/proxy"
"net"
"testing"
)
func init() {
@@ -138,7 +139,7 @@ func TestMapAllPortsSingleInterface(t *testing.T) {
}
if _, err := Map(srcAddr1, dstIp1, portallocator.BeginPortRange); err == nil {
t.Fatal("Port %d should be bound but is not", portallocator.BeginPortRange)
t.Fatalf("Port %d should be bound but is not", portallocator.BeginPortRange)
}
for _, val := range hosts {