All Downloads are FREE. Search and download functionalities are using the official Maven repository.

endpoints4s.algebra.client.TimeoutTestSuite.scala Maven / Gradle / Ivy

The newest version!
package endpoints4s.algebra.client

import endpoints4s.algebra

trait TimeoutTestSuite[T <: algebra.client.ClientEndpointsTestApi] extends ClientTestBase[T] {

  val client: T

  "Timeout" in {
    for {
      _ <- call(client.slowResponseEndpoint, ()).failed
        .map(_ shouldBe a[scala.concurrent.TimeoutException])
    } yield succeed
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy