Add comment to TestValidatePorts.

pull/13812/head
Tomohito YABU 2022-03-24 09:33:55 +09:00
parent 1832ed6ff5
commit afb3956fdb
1 changed files with 2 additions and 0 deletions

View File

@ -464,6 +464,8 @@ func TestValidateRuntime(t *testing.T) {
func TestValidatePorts(t *testing.T) {
isMicrosoftWSL := detect.IsMicrosoftWSL()
type portTest struct {
// isTarget indicates whether or not the test case is covered
// because validatePorts behaves differently depending on whether process is running in WSL in windows or not.
isTarget bool
ports []string
errorMsg string