Skip to content

Commit

Permalink
rename suite
Browse files Browse the repository at this point in the history
  • Loading branch information
amitksingh1490 committed Jan 17, 2022
1 parent 1184452 commit acccb77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zio-http/src/test/scala/zhttp/http/MiddlewareSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ object MiddlewareSpec extends DefaultRunnableSpec with HExitAssertion {
assertM(app(0))(equalTo("0Foo0FooBar"))
}
} +
suite("When") {
suite("when") {
val mid = Middleware.succeed(0)
testM("condition is true") {
val app = Http.identity[Int] @@ mid.when[Int](_ => true)
Expand All @@ -125,7 +125,7 @@ object MiddlewareSpec extends DefaultRunnableSpec with HExitAssertion {
assertM(app(1))(equalTo(1))
}
} +
suite("WhenZIO") {
suite("whenZIO") {
val mid = Middleware.succeed(0)
testM("condition is true") {
val app = Http.identity[Int] @@ mid.whenZIO[Any, Nothing, Int](_ => UIO(true))
Expand Down

1 comment on commit acccb77

@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: 819723.16

Please sign in to comment.