fix vet error in test/soak/serve_hostnames/serve_hostnames.go

test/soak/serve_hostnames/serve_hostnames.go:124: Warningf format %e has arg ns of wrong type string
This commit is contained in:
Christoph Blecker 2018-10-05 16:05:17 -07:00
parent 781d3f6055
commit ee3e404122
No known key found for this signature in database
GPG Key ID: B34A59A9D39F838B

View File

@ -121,7 +121,7 @@ func main() {
ns := got.Name ns := got.Name
defer func(ns string) { defer func(ns string) {
if err := client.CoreV1().Namespaces().Delete(ns, nil); err != nil { if err := client.CoreV1().Namespaces().Delete(ns, nil); err != nil {
glog.Warningf("Failed to delete namespace ns: %e", ns, err) glog.Warningf("Failed to delete namespace %s: %v", ns, err)
} else { } else {
// wait until the namespace disappears // wait until the namespace disappears
for i := 0; i < int(namespaceDeleteTimeout/time.Second); i++ { for i := 0; i < int(namespaceDeleteTimeout/time.Second); i++ {