Commit db8e2419 authored by Mikio Hara's avatar Mikio Hara Committed by Matt Layher

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: 's avatarMatt Layher <mdlayher@gmail.com>
parent 77412025
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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" package nettest // import "golang.org/x/net/internal/nettest"
import ( import (
...@@ -62,7 +62,7 @@ func TestableNetwork(network string) bool { ...@@ -62,7 +62,7 @@ func TestableNetwork(network string) bool {
// This is based on logic from standard library's // This is based on logic from standard library's
// net/platform_test.go. // net/platform_test.go.
switch network { switch network {
case "unix": case "unix", "unixgram":
switch runtime.GOOS { switch runtime.GOOS {
case "android", "nacl", "plan9", "windows": case "android", "nacl", "plan9", "windows":
return false return false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment