Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for Test_Connections currently fails intermittently on Linux (and
maybe other OSs). On inspection, Go closes TCP connections when they go out of scope and are garbage collected. I've re-written Test_Connections() to avoid closing until the test has finished. Other changes: - Close connections properly in TestConnections so running go test -times=N works. - t.Skip() can not be called inside a test go-routine. - Make sure that Test_AllProcesses_cmdLine doesn't ignore failures. - Some minor style changes motivated by staticcheck warnings.
- Loading branch information
Showing
2 changed files
with
60 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters