command: fix test failure on Windows

Adjust the laddr argument to net.Listen to the form host:port,
as documented for net.Dial.

Fixes a test failure on Windows.
This commit is contained in:
Emil Hessman 2015-01-28 06:22:35 +01:00
parent e147d2d475
commit 92e68c1ee6
1 changed files with 1 additions and 1 deletions

View File

@ -1124,7 +1124,7 @@ func TestApply_disableBackup(t *testing.T) {
}
func testHttpServer(t *testing.T) net.Listener {
ln, err := net.Listen("tcp", ":0")
ln, err := net.Listen("tcp", "127.0.0.1:0")
if err != nil {
t.Fatalf("err: %s", err)
}