Skip to content

Commit

Permalink
Fix integration testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mvelimir committed Feb 22, 2023
1 parent b77f93d commit db2abbb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ trait IntegrationSpec extends ZIOSpecDefault {
val createIndexTestName: IndexName = IndexName("create-index-test-name")

val prepareElasticsearchIndexForTests: TestAspect[Nothing, Any, Throwable, Any] = beforeAll((for {
_ <- Elasticsearch.execute(ElasticRequest.createIndex(index, None))
_ <- Elasticsearch.execute(ElasticRequest.deleteByQuery(index, matchAll).refreshTrue)
_ <- ElasticExecutor.execute(ElasticRequest.createIndex(index, None))
_ <- ElasticExecutor.execute(ElasticRequest.deleteByQuery(index, matchAll).refreshTrue)
} yield ()).provide(elasticsearchLayer))

def genIndexName: Gen[Any, IndexName] =
Expand Down

0 comments on commit db2abbb

Please sign in to comment.