Added HV Socket tests (#240)

* Added HV Socket tests

Added tests for core Hyper-V socket functionality, including testing
CloseRead and CloseWrite, as well as checking addresses are appropriate
and timeouts work.

Added fuzzing test to check for edge case read/write issues.

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>

* pr: asserts, naming, fatal in test

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
This commit is contained in:
Hamza El-Saawy
2022-08-22 11:09:02 -04:00
committed by GitHub
parent d68e55cd0b
commit 79ae8cea02
4 changed files with 745 additions and 0 deletions
+2
View File
@@ -6,3 +6,5 @@ require (
github.com/sirupsen/logrus v1.7.0
golang.org/x/sys v0.0.0-20220422013727-9388b58f7150
)
require golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 // indirect