fix path test

Opinionated: Paths should start with /, dammit!
This commit is contained in:
Steven Allen 2018-10-01 22:05:11 -07:00
parent 58bcbc8e51
commit 96897075ba

View File

@ -376,7 +376,7 @@ func TestGetValue(t *testing.T) {
a = newMultiaddr(t, "/ip4/0.0.0.0/unix/a/b/c/d") // ending in a path one. a = newMultiaddr(t, "/ip4/0.0.0.0/unix/a/b/c/d") // ending in a path one.
assertValueForProto(t, a, P_IP4, "0.0.0.0") assertValueForProto(t, a, P_IP4, "0.0.0.0")
assertValueForProto(t, a, P_UNIX, "a/b/c/d") assertValueForProto(t, a, P_UNIX, "/a/b/c/d")
} }
func TestFuzzBytes(t *testing.T) { func TestFuzzBytes(t *testing.T) {