Skip to content

Commit

Permalink
test: add tests for Http.merge
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Apr 28, 2022
1 parent a8faf21 commit 3a05895
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zio-http/src/test/scala/zhttp/http/HttpSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -532,5 +532,11 @@ object HttpSpec extends DefaultRunnableSpec with HExitAssertion {
assert(http.execute {})(isDie(equalTo(t)))
},
),
suite("merge")(
test("merges error into success") {
val http = Http.fail(1).merge
assert(http.execute {})(isSuccess(equalTo(1)))
},
),
) @@ timeout(10 seconds)
}

4 comments on commit 3a05895

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

🚀 Performance Benchmark:

Concurrency: 256
Requests/sec: 980626.31

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

🚀 Performance Benchmark:

Concurrency: 256
Requests/sec: 978412.94

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

🚀 Performance Benchmark:

Concurrency: 256
Requests/sec: 972412.11

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

🚀 Performance Benchmark:

Concurrency: 256
Requests/sec: 961958.78

Please sign in to comment.