Add k8s tags to related tests (#1018)

, so that `make test` will pass by default.

Also fixed several ineffassign and golint issues.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2017-09-01 10:21:05 -07:00
committed by Miek Gieben
parent 6493858893
commit 4b14243e9b
7 changed files with 19 additions and 8 deletions

View File

@@ -65,9 +65,8 @@ func (d *Data) HostPort(addr string) error {
d.SocketFam = tap.SocketFamily_INET6
}
return nil
} else {
return errors.New("not an ip address")
}
return errors.New("not an ip address")
}
// RemoteAddr parses the information about the remote address into Data.