|
|
@ -72,7 +72,6 @@ namespace NzbDrone.Common.Test.Http
|
|
|
|
[TestCase(HttpStatusCode.InternalServerError)]
|
|
|
|
[TestCase(HttpStatusCode.InternalServerError)]
|
|
|
|
[TestCase(HttpStatusCode.ServiceUnavailable)]
|
|
|
|
[TestCase(HttpStatusCode.ServiceUnavailable)]
|
|
|
|
[TestCase(HttpStatusCode.BadGateway)]
|
|
|
|
[TestCase(HttpStatusCode.BadGateway)]
|
|
|
|
[TestCase(429)]
|
|
|
|
|
|
|
|
public void should_throw_on_unsuccessful_status_codes(int statusCode)
|
|
|
|
public void should_throw_on_unsuccessful_status_codes(int statusCode)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var request = new HttpRequest("http://eu.httpbin.org/status/" + statusCode);
|
|
|
|
var request = new HttpRequest("http://eu.httpbin.org/status/" + statusCode);
|
|
|
|