Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
mkotsbakws committed Apr 5, 2016
1 parent 3a50a33 commit 8bab156
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -30,11 +30,11 @@ class SchemaSupportTest {
println(s4)
assertTrue("delete uses schema name", s4 contains """delete from "myschema"."mytable"""")

val s5 = ts.schema.createStatements
val s5 = ts.schema.createStatements.toList
s5.foreach(println)
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(println)
s6.foreach(s => assertTrue("DDL (drop) uses schema name", s contains """ "myschema"."mytable""""))
}
Expand Down

0 comments on commit 8bab156

Please sign in to comment.