Browse Source

x/net/ipv6: fix using wrong constant in test

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/174480043
Mikio Hara 11 years ago
parent
commit
ed45f19369
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ipv6/sockopt_test.go

+ 1 - 1
ipv6/sockopt_test.go

@@ -106,7 +106,7 @@ func TestPacketConnChecksum(t *testing.T) {
 		t.Skip("must be root")
 	}
 
-	c, err := net.ListenPacket(fmt.Sprintf("ip6:%d", iana.ProtocolIPv6ICMP), "::") // OSPF for IPv6
+	c, err := net.ListenPacket(fmt.Sprintf("ip6:%d", iana.ProtocolOSPFIGP), "::") // OSPF for IPv6
 	if err != nil {
 		t.Fatal(err)
 	}