Skip to content

Commit

Permalink
Switched to local httpbin because the saas one is not reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
mroloux committed Jan 6, 2023
1 parent be984ce commit 65a9dbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SeatsioDotNet.Test/ExponentialBackoffTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class ExponentialBackoffTest : SeatsioClientTest
public void AbortsEventuallyIfServerKeepsReturning429()
{
var start = DateTimeOffset.Now;
var client = new SeatsioRestClient("https://httpbin.org");
var client = new SeatsioRestClient("https://httpbin.seatsio.net");

var response = client.Execute<object>(new RestRequest("/status/429", Method.Get));

Expand All @@ -25,7 +25,7 @@ public void AbortsEventuallyIfServerKeepsReturning429()
public void AbortsDirectlyIfServerReturnsOtherErrorThan429()
{
var start = DateTimeOffset.Now;
var client = new SeatsioRestClient("https://httpbin.org");
var client = new SeatsioRestClient("https://httpbin.seatsio.net");

var response = client.Execute<object>(new RestRequest("/status/400", Method.Get));

Expand All @@ -39,7 +39,7 @@ public void AbortsDirectlyIfServerReturnsOtherErrorThan429()
public void AbortsDirectlyIfServerReturnsError429ButMaxRetries0()
{
var start = DateTimeOffset.Now;
var client = new SeatsioRestClient("https://httpbin.org", 0);
var client = new SeatsioRestClient("https://httpbin.seatsio.net", 0);

var response = client.Execute<object>(new RestRequest("/status/429", Method.Get));

Expand All @@ -52,7 +52,7 @@ public void AbortsDirectlyIfServerReturnsError429ButMaxRetries0()
[Fact]
public void ReturnsSuccessfullyWhenTheServerSendsA429FirstAndThenASuccessfulResponse()
{
var client = new SeatsioRestClient("https://httpbin.org");
var client = new SeatsioRestClient("https://httpbin.seatsio.net");
for (var i = 0; i < 20; ++i)
{
var response = client.Execute<object>(new RestRequest("/status/429:0.25,204:0.75", Method.Get));
Expand Down

0 comments on commit 65a9dbf

Please sign in to comment.