From 834f8100da1dcf53e221cc972628fc41e86379f6 Mon Sep 17 00:00:00 2001 From: "John A. De Goes" Date: Mon, 24 Jul 2023 12:38:33 +0100 Subject: [PATCH] broken test --- .../src/test/scala/zio/http/StaticServerSpec.scala | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/zio-http/src/test/scala/zio/http/StaticServerSpec.scala b/zio-http/src/test/scala/zio/http/StaticServerSpec.scala index f27dc5e556..0df931fd75 100644 --- a/zio-http/src/test/scala/zio/http/StaticServerSpec.scala +++ b/zio-http/src/test/scala/zio/http/StaticServerSpec.scala @@ -62,9 +62,21 @@ object StaticServerSpec extends HttpRunnableSpec { ), ) + private val methodGenWithoutOPTIONS: Gen[Any, Method] = Gen.fromIterable( + List( + Method.GET, + Method.POST, + Method.PUT, + Method.PATCH, + Method.DELETE, + Method.TRACE, + Method.CONNECT, + ), + ) + def nonZIOSpec = suite("NonZIOSpec")( test("200 response") { - checkAll(HttpGen.method) { method => + checkAll(methodGenWithoutOPTIONS) { method => val actual = status(method, Root / "ExitSuccess") assertZIO(actual)(equalTo(Status.Ok)) }