Skip to content
Browse files

Fixed localization issue in test

  • Loading branch information...
1 parent cd1a62c commit 68cd7998eadf6c24a3ca0abb2a2288e22b5f6ef3 Tobias Grimm committed
Showing with 7 additions and 6 deletions.
  1. +7 −6 Bundles/Raven.Bundles.Tests/Authentication/SmugglerOAuth.cs
View
13 Bundles/Raven.Bundles.Tests/Authentication/SmugglerOAuth.cs
@@ -23,11 +23,11 @@ public SmugglerOAuth()
using (var s = embeddedStore.OpenSession())
{
s.Store(new AuthenticationUser
- {
- Name = "Ayende",
- Id = "Raven/Users/Ayende",
- AllowedDatabases = new[] {"*"}
- }.SetPassword("abc"));
+ {
+ Name = "Ayende",
+ Id = "Raven/Users/Ayende",
+ AllowedDatabases = new[] {"*"}
+ }.SetPassword("abc"));
for (int i = 0; i < 10; i++)
{
@@ -51,7 +51,8 @@ public void Export_WithoutCredentials_WillReturnWithStatus401()
var smugglerApi = new SmugglerApi(new RavenConnectionStringOptions {Url = store.Url});
var webException = Assert.Throws<WebException>(() => smugglerApi.ExportData(new SmugglerOptions { File = File }));
- Assert.Equal("The remote server returned an error: (401) Unauthorized.", webException.Message);
+ Assert.Equal(WebExceptionStatus.ProtocolError, webException.Status);
+ Assert.Equal(HttpStatusCode.Unauthorized, ((HttpWebResponse)webException.Response).StatusCode);
}
public class Item

0 comments on commit 68cd799

Please sign in to comment.
Something went wrong with that request. Please try again.