Skip to content

Commit

Permalink
Delete commented websocket tests (#826)
Browse files Browse the repository at this point in the history
  • Loading branch information
d11-amitsingh authored Jan 13, 2022
1 parent 0ff48ed commit 33c7264
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 55 deletions.
24 changes: 0 additions & 24 deletions zio-http/src/test/scala/zhttp/internal/HttpRunnableSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,6 @@ abstract class HttpRunnableSpec extends DefaultRunnableSpec { self =>
} yield status
}

def webSocketRequest(
path: Path = !!,
headers: Headers = Headers.empty,
) = ???
// ): HttpIO[SttpClient, SResponse[Either[String, WebSocket[Task]]]] = {
// import zhttp.Client

// // todo: uri should be created by using URL().asString but currently support for ws Scheme is missing
// for {
// port <- DynamicServer.getPort
// url = s"ws://localhost:$port${path.asString}"
// headerConv: List[SHeader] = headers.toList.map(h => SHeader(h._1, h._2))
// res <- send(basicRequest.get(uri"$url").copy(headers = headerConv).response(asWebSocketUnsafe))
// } yield res
// }

implicit class RunnableHttpAppSyntax(app: HttpApp[HttpEnv, Throwable]) {
def deploy: ZIO[DynamicServer, Nothing, String] = DynamicServer.deploy(app)

Expand Down Expand Up @@ -109,14 +93,6 @@ abstract class HttpRunnableSpec extends DefaultRunnableSpec { self =>
): HttpIO[Any, Status] =
request(path, method, content, headers).map(_.status)

def webSocketStatusCode(
path: Path = !!,
headers: Headers = Headers.empty,
) = ??? /*: HttpIO[SttpClient, Int] = for {
id <- deploy
res <- self.webSocketRequest(path, Headers(DynamicServer.APP_ID, id) ++ headers)
} yield res.code.code*/

def requestBody(
path: Path = !!,
method: Method = Method.GET,
Expand Down
31 changes: 0 additions & 31 deletions zio-http/src/test/scala/zhttp/service/WebSocketServerSpec.scala

This file was deleted.

0 comments on commit 33c7264

Please sign in to comment.