Skip to content

Commit

Permalink
zio-http-2559 Update the test kit so that it supports the current dev…
Browse files Browse the repository at this point in the history
…elopment style as supported ...

format

Took 20 minutes


Took 16 seconds
  • Loading branch information
gmixa committed Dec 22, 2023
1 parent f91011e commit 3f95bde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zio-http-testkit/src/test/scala/zio/http/TestServerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import zio.test._
object TestServerSpec extends ZIOHttpSpec {
def status(response: Response): Status = response.status

def spec = suite("TestServerSpec")(
def spec: Spec[TestEnvironment with Scope, Any] = suite("TestServerSpec")(
test("with state") {
for {
client <- ZIO.service[Client]
state <- Ref.make(0)
testRequest <- requestToCorrectPort
_ <- TestServer.addHandler { case (_: Request) =>
_ <- TestServer.addHandler { case _: Request =>
for {
curState <- state.getAndUpdate(_ + 1)
} yield {
Expand Down

0 comments on commit 3f95bde

Please sign in to comment.