mirror of
https://github.com/waku-org/go-multiaddr.git
synced 2025-02-23 11:38:20 +00:00
fix path test
Opinionated: Paths should start with /, dammit!
This commit is contained in:
parent
58bcbc8e51
commit
96897075ba
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user