Skip to content

Use httpbingo.org instead of httpbin.seatsio.net#262

Merged
mroloux merged 1 commit into
masterfrom
use-httpbingo
Jun 29, 2026
Merged

Use httpbingo.org instead of httpbin.seatsio.net#262
mroloux merged 1 commit into
masterfrom
use-httpbingo

Conversation

@mroloux

@mroloux mroloux commented Jun 29, 2026

Copy link
Copy Markdown
Member

No description provided.

@mroloux mroloux requested a review from a team as a code owner June 29, 2026 10:23
@mroloux mroloux requested review from bverbeken, Copilot and schaloner and removed request for a team June 29, 2026 10:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the test suite to use httpbingo.org instead of httpbin.seatsio.net for simulating specific HTTP error responses and timeout behavior.

Changes:

  • Switched external test endpoints from https://httpbin.seatsio.net/... to https://httpbingo.org/....
  • Updated expected exception messages in tests to reflect the new host.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/test/java/seatsio/ExponentialBackoffTest.java Updates the status endpoints used for 400/429 and the corresponding asserted exception messages.
src/test/java/seatsio/ErrorHandlingTest.java Updates the 500 and delay/timeout endpoints and the corresponding asserted exception messages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

throw new RuntimeException("Should have failed");
} catch (SeatsioException e) {
assertThat(e.getMessage()).isEqualTo("GET https://httpbin.seatsio.net/status/400 resulted in a 400 Bad Request response. Body: ");
assertThat(e.getMessage()).isEqualTo("GET https://httpbingo.org/status/400 resulted in a 400 Bad Request response. Body: ");
throw new RuntimeException("Should have failed");
} catch (SeatsioException e) {
assertThat(e.getMessage()).isEqualTo("GET https://httpbin.seatsio.net/status/429 resulted in a 429 Too Many Requests response. Body: ");
assertThat(e.getMessage()).isEqualTo("GET https://httpbingo.org/status/429 resulted in a 429 Too Many Requests response. Body: ");
SeatsioException e = assertThrows(SeatsioException.class, () -> new UnirestWrapper("secretKey", null).stringResponse(get("https://httpbin.seatsio.net/status/500")));
assertThat(e.getMessage()).isEqualTo("GET https://httpbin.seatsio.net/status/500 resulted in a 500 Internal Server Error response. Body: ");
SeatsioException e = assertThrows(SeatsioException.class, () -> new UnirestWrapper("secretKey", null).stringResponse(get("https://httpbingo.org/status/500")));
assertThat(e.getMessage()).isEqualTo("GET https://httpbingo.org/status/500 resulted in a 500 Internal Server Error response. Body: ");
@mroloux mroloux merged commit 8474794 into master Jun 29, 2026
3 checks passed
@mroloux mroloux deleted the use-httpbingo branch June 29, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants