Added support for macOS in TestNewHTTPListener (#4782)

This commit is contained in:
Andrej Pregl 2017-08-08 01:02:34 +02:00 committed by Harshavardhana
parent 283ad7e5e5
commit fa52d491c5

View File

@ -184,6 +184,8 @@ func TestNewHTTPListener(t *testing.T) {
remoteAddrErrMsg := "listen tcp 93.184.216.34:9000: bind: cannot assign requested address"
if runtime.GOOS == "windows" {
remoteAddrErrMsg = "listen tcp 93.184.216.34:9000: bind: The requested address is not valid in its context."
} else if runtime.GOOS == "darwin" {
remoteAddrErrMsg = "listen tcp 93.184.216.34:9000: bind: can't assign requested address"
}
tlsConfig := getTLSConfig(t)