Permalink
Browse files

Modifying VfsControllerBaseTest.cs to fix broken VFS tests.

  • Loading branch information...
1 parent 986d28d commit 6bbbb0d5377f045c83daf2b89b302acc24c90c6e @pranavkm pranavkm committed Dec 5, 2012
Showing with 1 addition and 8 deletions.
  1. +1 −8 Kudu.FunctionalTests/Vfs/VfsControllerBaseTest.cs
@@ -34,7 +34,7 @@ public VfsControllerBaseTest(RemoteVfsManager client, bool testConflictingUpdate
{
KuduClient = client;
Client = client.Client;
- BaseAddress = RemoveTerminatingSlash(Client.BaseAddress);
+ BaseAddress = Client.BaseAddress.GetComponents(UriComponents.HttpRequestUrl, UriFormat.Unescaped).TrimEnd(_segmentDelimiters);
_testConflictingUpdates = testConflictingUpdates;
}
@@ -405,12 +405,5 @@ private static HttpContent CreateUploadContent(byte[] content)
uploadContent.Headers.ContentType = _fileMediaType;
return uploadContent;
}
-
- private static string RemoveTerminatingSlash(Uri url)
- {
- UriBuilder address = new UriBuilder(url);
- address.Path = address.Path.TrimEnd(_segmentDelimiters);
- return address.Uri.AbsoluteUri;
- }
}
}

0 comments on commit 6bbbb0d

Please sign in to comment.