Skip to content

Commit

Permalink
Improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardsph committed Jan 29, 2024
1 parent 87e876a commit 1a26a7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/java/org/solid/testharness/http/ClientResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ public Map<String, String> start() {

wireMockServer.stubFor(WireMock.request("RETRY", WireMock.urlEqualTo("/retry"))
.inScenario("RETRY").whenScenarioStateIs(Scenario.STARTED)
.willReturn(WireMock.aResponse().withStatus(429))
.willSetStateTo("BUSY"));

wireMockServer.stubFor(WireMock.request("RETRY", WireMock.urlEqualTo("/retry"))
.inScenario("RETRY").whenScenarioStateIs("BUSY")
.willReturn(WireMock.aResponse().withStatus(200).withFixedDelay(1100))
.willSetStateTo("FAILED"));

Expand Down

0 comments on commit 1a26a7a

Please sign in to comment.