From a804ab61247a60079fd3eba829d9c67d88a8701b Mon Sep 17 00:00:00 2001 From: Nabil Abdel-Hafeez <7283535+987Nabil@users.noreply.github.com> Date: Mon, 12 Feb 2024 20:38:03 +0100 Subject: [PATCH] Flaky JS Test (#2670) --- zio-http/js/src/test/scala/zio/http/JSClientSpec.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zio-http/js/src/test/scala/zio/http/JSClientSpec.scala b/zio-http/js/src/test/scala/zio/http/JSClientSpec.scala index 28c154c8f..d25c6a11d 100644 --- a/zio-http/js/src/test/scala/zio/http/JSClientSpec.scala +++ b/zio-http/js/src/test/scala/zio/http/JSClientSpec.scala @@ -1,6 +1,7 @@ package zio.http import zio._ +import zio.test.TestAspect._ import zio.test._ object JSClientSpec extends ZIOSpecDefault { @@ -12,7 +13,8 @@ object JSClientSpec extends ZIOSpecDefault { response <- ZIO.serviceWithZIO[Client] { _.url(url"https://www.google.com").get("") } string <- response.body.asString } yield assertTrue(response.status.isSuccess, string.startsWith("")) - }, + } @@ flaky, // calling a real website is not the best idea. + // Should be replaced with a local server, as soon as we have js server support ), // suite("WebSocket")( // test("Echo") {