Skip to content

Commit

Permalink
fix path test
Browse files Browse the repository at this point in the history
Opinionated: Paths should start with /, dammit!
  • Loading branch information
Stebalien committed Oct 2, 2018
1 parent 58bcbc8 commit 9689707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multiaddr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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) {
Expand Down

0 comments on commit 9689707

Please sign in to comment.