TUN-3890: Code coverage for cloudflared in CI

Also changed the socks test code so that it binds to localhost, so that
we don't get popups saying "would you like to allow socks.test to use
the network"
This commit is contained in:
Adam Chalmers
2021-02-08 15:31:51 -06:00
parent a4f185fd28
commit d8bee0b4d9
4 changed files with 10 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ func TestCreateTLSListenerOnlyHostSuccess(t *testing.T) {
}
func TestCreateTLSListenerOnlyPortSuccess(t *testing.T) {
listener, err := CreateTLSListener(":8888")
listener, err := CreateTLSListener("localhost:8888")
if err != nil {
t.Fatal(err)
}