test: clean up net server try ports test
Checklist
-
make -j4 test
(UNIX) -
commit message follows commit guidelines
Affected core subsystem(s)
test
Description of change
- Replace var's with const and let
- Replace boolean flags with common.mustCall()
- Using stricter comparisons
- Fixed typo in comment