Skip to content

Commit

Permalink
Rename stop to release
Browse files Browse the repository at this point in the history
  • Loading branch information
kciesielski committed Nov 8, 2023
1 parent a3f6ce9 commit 3157022
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class AkkaHttpTestServerInterpreter(implicit actorSystem: ActorSystem)
IO.fromFuture(IO(b.terminate(gracefulShutdownTimeout.getOrElse(50.millis)))).void
)
)
) { case (_, stop) =>
stop
) { case (_, release) =>
release
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ trait ArmeriaTestServerInterpreter[S <: Streams[S], F[_], OPTIONS] extends TestS
IO { val _ = b.stop() }
)
)
) { case (_, stop) =>
stop
) { case (_, release) =>
release
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ object FinatraTestServerInterpreter {
IO { server.close(Duration.fromMilliseconds(gracefulShutdownTimeout.map(_.toMillis).getOrElse(50))) }
)
)
) { case (_, stop) =>
stop
) { case (_, release) =>
release
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class NettyCatsTestServerInterpreter(eventLoopGroup: NioEventLoopGroup, dispatch
val bind: IO[NettyCatsServerBinding[IO]] = NettyCatsServer(options, customizedConfig).addRoutes(routes.toList).start()

Resource
.make(bind.map(b => (b.port, b.stop()))) { case (_, stop) => stop }
.make(bind.map(b => (b.port, b.stop()))) { case (_, release) => release }
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ class NettyFutureTestServerInterpreter(eventLoopGroup: NioEventLoopGroup)(implic
val bind = IO.fromFuture(IO.delay(NettyFutureServer(options, customizedConfig).addRoutes(routes.toList).start()))

Resource
.make(bind.map(b => (b.port, IO.fromFuture(IO.delay(b.stop()))))) { case (_, stop) => stop }
.make(bind.map(b => (b.port, IO.fromFuture(IO.delay(b.stop()))))) { case (_, release) => release }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class NettyZioTestServerInterpreter[R](eventLoopGroup: NioEventLoopGroup)

Resource
.make(bind.map(b => (b.port, IO.fromFuture[Unit](IO(Unsafe.unsafe(implicit u => runtime.unsafe.runToFuture(b.stop()))))))) {
case (_, stop) => stop
case (_, release) => release
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class PekkoHttpTestServerInterpreter(implicit actorSystem: ActorSystem)
IO.fromFuture(IO(b.terminate(gracefulShutdownTimeout.getOrElse(50.millis)))).void
)
)
) { case (_, stop) =>
stop
) { case (_, release) =>
release
}
}
}

0 comments on commit 3157022

Please sign in to comment.