X Tutup
Skip to content

Commit d68126a

Browse files
committed
Avoid macOS prompt to allow incoming connections in liveshare tests
Listening on the localhost interface disallows connections from the outside anyway, so the OS firewall doesn't have to prompt whether the user wants to allow incoming connections to the Go process.
1 parent 53479c7 commit d68126a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/liveshare/port_forwarder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func TestPortForwarderStart(t *testing.T) {
4646
}
4747
defer testServer.Close()
4848

49-
listen, err := net.Listen("tcp", ":8000")
49+
listen, err := net.Listen("tcp", "127.0.0.1:8000")
5050
if err != nil {
5151
t.Fatal(err)
5252
}

0 commit comments

Comments
 (0)
X Tutup