Skip to content

Commit

Permalink
Deflake portmap ptp test
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Dec 9, 2019
1 parent 04a3177 commit 3cfa6c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/meta/portmap/portmap_integ_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,13 @@ func testEchoServer(address string, port int, netns string) bool {
netns = filepath.Base(netns)
cmd = exec.Command("ip", "netns", "exec", netns, bin, "-v", address, strconv.Itoa(port))
} else {
cmd = exec.Command("nc", address, strconv.Itoa(port))
cmd = exec.Command(bin, "-v", address, strconv.Itoa(port))
}
cmd.Stdin = bytes.NewBufferString(message)
cmd.Stderr = GinkgoWriter
out, err := cmd.Output()
if err != nil {
fmt.Fprintln(GinkgoWriter, "got non-zero exit from ", cmd.Args)
fmt.Fprintln(GinkgoWriter, "got non-zero exit from ", cmd.Args, "Output ", out, "Error ", err)
return false
}

Expand Down

0 comments on commit 3cfa6c3

Please sign in to comment.