internal/nettest: add missing support for "unixgram" to TestableNetwork
Also updates the package description.
Change-Id: I782a9d34d5a35aff92873efc6d511f95686cd5d6
Reviewed-on: https://go-review.googlesource.com/35071
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matt Layher <mdlayher@gmail.com>
diff --git a/internal/nettest/stack.go b/internal/nettest/stack.go
index 2808b57..cc92c03 100644
--- a/internal/nettest/stack.go
+++ b/internal/nettest/stack.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// Package nettest provides utilities for IP testing.
+// Package nettest provides utilities for network testing.
package nettest // import "golang.org/x/net/internal/nettest"
import (
@@ -62,7 +62,7 @@
// This is based on logic from standard library's
// net/platform_test.go.
switch network {
- case "unix":
+ case "unix", "unixgram":
switch runtime.GOOS {
case "android", "nacl", "plan9", "windows":
return false