Skip to content

Commit

Permalink
still flaky. try harder
Browse files Browse the repository at this point in the history
  • Loading branch information
hochgi committed Dec 2, 2024
1 parent a7547b8 commit 714ea7e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion zio-http/jvm/src/test/scala/zio/http/ClientHttpsSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ abstract class ClientHttpsSpecBase extends ZIOHttpSpec {
assertZIO(actual)(anything)
},
test("should respond as Bad Request") {
val actual = Client.batched(Request.get(badRequest)).map(_.status)
val actual = Client
.batched(Request.get(badRequest))
.map(_.status)
.reject { case Status.ServiceUnavailable =>
new RuntimeException("503 is expected from time to time")
}
.retry(Schedule.exponential(1.second) && Schedule.recurs(5))
assertZIO(actual)(equalTo(Status.BadRequest))
} @@ flaky /* sometimes we get 503 */,
test("should throw DecoderException for handshake failure") {
Expand Down

0 comments on commit 714ea7e

Please sign in to comment.