Skip to content
Browse files

Fix error in the test.

"createStatements" returns an Iterator, which results in no elements
left to test after foreach for "println". The checks would always succeed.
  • Loading branch information
mkotsbak committed Apr 5, 2016
1 parent 3a50a33 commit 8bab1566318de0e947d32f5bed16acea71e30e48
Showing with 2 additions and 2 deletions.
  1. +2 −2 slick-testkit/src/test/scala/slick/test/lifted/SchemaSupportTest.scala
@@ -30,11 +30,11 @@ class SchemaSupportTest {
assertTrue("delete uses schema name", s4 contains """delete from "myschema"."mytable"""")

val s5 = ts.schema.createStatements
val s5 = ts.schema.createStatements.toList
s5.foreach(s => assertTrue("DDL (create) uses schema name", s contains """ "myschema"."mytable""""))

val s6 = ts.schema.dropStatements
val s6 = ts.schema.dropStatements.toList
s6.foreach(s => assertTrue("DDL (drop) uses schema name", s contains """ "myschema"."mytable""""))

0 comments on commit 8bab156

Please sign in to comment.