Skip to content

Commit

Permalink
Fix failing spec
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinlfer committed Jun 2, 2023
1 parent 82a83f1 commit 909ced3
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import weaver._
import weaver.scalacheck.CheckConfig
import weaver.scalacheck.Checkers

import scala.concurrent.duration._

class CollectionsSpec(global: GlobalRead) extends IOSuite with ResourceSuite with Checkers {

override def maxParallelism: Int = 1

override def checkConfig: CheckConfig =
CheckConfig.default
.copy(
Expand All @@ -24,15 +24,14 @@ class CollectionsSpec(global: GlobalRead) extends IOSuite with ResourceSuite wit

override def sharedResource: Resource[IO, Res] = global.getOrFailR[Res]()

test("Read and write a row containing collections".ignore) { executor =>
test("Read and write a row containing collections") { executor =>
import SimpleCollectionRow._
forall(gen) { expected =>
for {
_ <- executor.executeMutation(insert(expected))
_ <- IO.sleep(1.second)
actual <- executor.execute(select(expected.id)).compile.toList
resultAll <- executor.execute(selectAll).compile.toList
} yield expect.all(actual == expected, actual.length == 1, resultAll.contains(expected))
} yield expect.all(actual.length == 1, actual.head == expected, resultAll.contains(expected))
}
}

Expand Down

0 comments on commit 909ced3

Please sign in to comment.