skip checking error also on Mac in TestCheckPortAvailability (#8343)

This commit is contained in:
Yao Zongyou
2019-10-02 01:42:18 +08:00
committed by kannappanr
parent ac2e0596bd
commit 6a19d7b25a
3 changed files with 4 additions and 17 deletions

View File

@@ -216,8 +216,8 @@ func TestCheckPortAvailability(t *testing.T) {
}
for _, testCase := range testCases {
// On MS Windows, skip checking error case due to https://github.com/golang/go/issues/7598
if runtime.GOOS == globalWindowsOSName && testCase.expectedErr != nil {
// On MS Windows and Mac, skip checking error case due to https://github.com/golang/go/issues/7598
if (runtime.GOOS == globalWindowsOSName || runtime.GOOS == globalMacOSName) && testCase.expectedErr != nil {
continue
}