From 92e68c1ee6217e33d1b48a3a04308085de4346bf Mon Sep 17 00:00:00 2001 From: Emil Hessman Date: Wed, 28 Jan 2015 06:22:35 +0100 Subject: [PATCH] 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. --- command/apply_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/apply_test.go b/command/apply_test.go index 6c8643b87..c062de5af 100644 --- a/command/apply_test.go +++ b/command/apply_test.go @@ -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) }