@@ -101,7 +101,7 @@ object RoundtripSpec extends ZIOHttpSpec {
101
101
outF : Out => ZIO [Any , Err , TestResult ],
102
102
): zio.ZIO [Server with ZClient [Any , Any , Body , Throwable , Response ] with Scope , Err , TestResult ] =
103
103
for {
104
- port <- Server .install (route @@ Middleware .requestLogging())
104
+ port <- Server .installRoutes (route @@ Middleware .requestLogging())
105
105
client <- ZIO .service[ZClient [Any , Any , Body , Throwable , Response ]]
106
106
executor = makeExecutor(client, port)
107
107
out <- executor(endpoint.apply(in))
@@ -114,7 +114,7 @@ object RoundtripSpec extends ZIOHttpSpec {
114
114
outF : Response => ZIO [Any , Err , TestResult ],
115
115
): zio.ZIO [Server with ZClient [Any , Any , Body , Throwable , Response ] with Scope , Err , TestResult ] = {
116
116
for {
117
- port <- Server .install (route @@ Middleware .requestLogging())
117
+ port <- Server .installRoutes (route @@ Middleware .requestLogging())
118
118
client <- ZIO .service[ZClient [Any , Any , Body , Throwable , Response ]]
119
119
out <- client(in.updateURL(_.host(" localhost" ).port(port))).orDie
120
120
result <- outF(out)
@@ -136,7 +136,7 @@ object RoundtripSpec extends ZIOHttpSpec {
136
136
errorF : Err => ZIO [Any , Nothing , TestResult ],
137
137
): ZIO [ZClient [Any , Any , Body , Throwable , Response ] with Server with Scope , Out , TestResult ] =
138
138
for {
139
- port <- Server .install (route)
139
+ port <- Server .installRoutes (route)
140
140
executorLayer = ZLayer (ZIO .service[ZClient [Any , Any , Body , Throwable , Response ]].map(makeExecutor(_, port)))
141
141
out <- ZIO
142
142
.service[EndpointExecutor [Any , Unit , Any ]]
@@ -314,7 +314,7 @@ object RoundtripSpec extends ZIOHttpSpec {
314
314
}
315
315
316
316
for {
317
- port <- Server .install (handler.toRoutes)
317
+ port <- Server .installRoutes (handler.toRoutes)
318
318
client <- ZIO .service[ZClient [Any , Any , Body , Throwable , Response ]]
319
319
response <- client(
320
320
Request .post(
@@ -461,7 +461,7 @@ object RoundtripSpec extends ZIOHttpSpec {
461
461
val routes = endpointRoute.toRoutes
462
462
463
463
for {
464
- port <- Server .install (routes)
464
+ port <- Server .installRoutes (routes)
465
465
executorLayer = ZLayer (ZIO .serviceWith[ZClient [Any , Any , Body , Throwable , Response ]](makeExecutor(_, port)))
466
466
467
467
cause <- ZIO
0 commit comments