Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
markaya committed Dec 12, 2022
1 parent 2006742 commit f7531d2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ lazy val library =
"dev.zio" %% "zio-schema" % "0.3.1",
"dev.zio" %% "zio-schema-json" % "0.3.1",
"org.apache.commons" % "commons-lang3" % "3.12.0",
"dev.zio" %% "zio-test" % "2.0.4" % IntegrationTest,
"dev.zio" %% "zio-test-sbt" % "2.0.4" % IntegrationTest
"dev.zio" %% "zio-test" % "2.0.4" % "it,test",
"dev.zio" %% "zio-test-sbt" % "2.0.4" % "it,test"
),
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
)
Expand Down
4 changes: 2 additions & 2 deletions modules/example/src/main/scala/example/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package example
import sttp.client3.httpclient.zio.HttpClientZioBackend
import zio.elasticsearch.ElasticQuery._
import zio.elasticsearch.ElasticRequest.search
import zio.elasticsearch.{ElasticExecutor, IndexName}
import zio.elasticsearch.{ElasticExecutor, ElasticQuery, IndexName}
import zio.{Scope, ZIO, ZIOAppArgs, ZIOAppDefault}

// TODO : REMOVE CLASS BEFORE MERGE
Expand All @@ -30,7 +30,7 @@ object Main extends ZIOAppDefault {
// (matches("customer_gender", "MALE") and matches("day_of_week", "Monday")) or matches("customer_last_name", "Weber")
// println(query2.asJsonBody)

val query =
val query: ElasticQuery =
boolQuery()
.must(matches("customer_gender", "MALE"))
.must(matches("day_of_week", "Monday"))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package zio.elasticsearch

import zio.test.{Assertion, ZIOSpecDefault, assert}
import zio.Scope
import zio.elasticsearch.ElasticQuery._
import zio.json.ast.Json
import zio.test.{Assertion, Spec, TestEnvironment, ZIOSpecDefault, assert}

object QueryDSLSpec extends ZIOSpecDefault {

override def spec =
override def spec: Spec[Environment with TestEnvironment with Scope, Any] =
suite("Query DSL")(
suite("Creating Elastic Query Class")(
test("Successfully create Match Query using `matches` method") {
Expand Down

0 comments on commit f7531d2

Please sign in to comment.