aboutsummaryrefslogtreecommitdiff
path: root/src/net/error_unix_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/error_unix_test.go')
-rw-r--r--src/net/error_unix_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/error_unix_test.go b/src/net/error_unix_test.go
index 291a7234f2..20daf13c18 100644
--- a/src/net/error_unix_test.go
+++ b/src/net/error_unix_test.go
@@ -37,3 +37,11 @@ func samePlatformError(err, want error) bool {
func isENOBUFS(err error) bool {
return errors.Is(err, syscall.ENOBUFS)
}
+
+func isECONNRESET(err error) bool {
+ return errors.Is(err, syscall.ECONNRESET)
+}
+
+func isWSAECONNREFUSED(err error) bool {
+ return false // WSAECONNREFUSED is Windows-specific
+}