update for smartos build (solaris too) (#10378)

This commit is contained in:
Gaige B Paulsen
2020-08-31 13:19:25 -04:00
committed by GitHub
parent f04a1f220c
commit 859ef52886
5 changed files with 26 additions and 11 deletions

View File

@@ -215,7 +215,7 @@ func TestCheckPortAvailability(t *testing.T) {
for _, testCase := range testCases {
// 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 {
if (runtime.GOOS == globalWindowsOSName || runtime.GOOS == globalMacOSName || runtime.GOOS == "solaris") && testCase.expectedErr != nil {
continue
}