Fix TestSplitURLPath

This commit is contained in:
Konrad Wojas 2020-05-31 22:09:41 +08:00 committed by Alexander Neumann
parent 63c8797ba3
commit c2958906ea

View file

@ -265,7 +265,7 @@ func TestSplitURLPath(t *testing.T) {
{"/foo/bar", 2, []string{"foo"}, "/bar"},
{"/locks/", 2, nil, "/locks/"},
// This function only splits, it does not check the path components!
{"/././locks/", 2, []string{"..", ".."}, "/locks/"},
{"/././locks/", 2, []string{".", "."}, "/locks/"},
{"/../../locks/", 2, []string{"..", ".."}, "/locks/"},
{"///locks/", 2, []string{"", ""}, "/locks/"},
{"////locks/", 2, []string{"", ""}, "//locks/"},