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:
parent
e147d2d475
commit
92e68c1ee6
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue