Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
guizmaii committed May 31, 2024
1 parent ddc0f5f commit d9e695c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ class BatchActionMultiTest extends Spec with Inside with SuperContext[PostgresDi
)

"static - mixed" in {
val static = ctx.run(liftQuery(people).foreach(p => query[Person].insert(_.id -> p.id, _.name -> (lift("foo") + p.name + "bar"), _.age -> p.age)), 2)
val static = ctx.run(liftQuery(people).foreach(p => query[Person].insert(_.id -> p.id, _.name -> (lift("foo") + p.name + "bar"), _.age -> p.age, _.sex -> p.sex)), 2)
static.tripleBatchMulti mustEqual expect2(ExecutionType.Static)
}
"dynamic - mixed" in {
// TODO Why does it not print that a dynamic query is being run?
val q = quote(liftQuery(people).foreach(p => query[Person].insert(_.id -> p.id, _.name -> (lift("foo") + p.name + "bar"), _.age -> p.age)))
val q = quote(liftQuery(people).foreach(p => query[Person].insert(_.id -> p.id, _.name -> (lift("foo") + p.name + "bar"), _.age -> p.age, _.sex -> p.sex)))
val static = ctx.run(q, 2)
static.tripleBatchMulti mustEqual expect2(ExecutionType.Dynamic)
}
Expand Down

0 comments on commit d9e695c

Please sign in to comment.