Skip to content

Commit 6ee3392

Browse files
committed
small fix for tests. should never drop table test_one before test_two when foreign key applies
Signed-off-by: Joern Bernhardt <jb@campudus.com>
1 parent 355f1c6 commit 6ee3392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/scala/io/vertx/asyncsql/test/BaseSqlTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ trait BaseSqlTests {
380380
@Test
381381
def violateForeignKey(): Unit = (for {
382382
(msg, beginResult) <- sendOk(Json.obj("action" -> "begin"))
383-
(msg, _) <- replyOk(msg, raw("DROP TABLE IF EXISTS test_one;"))
384383
(msg, _) <- replyOk(msg, raw("DROP TABLE IF EXISTS test_two;"))
384+
(msg, _) <- replyOk(msg, raw("DROP TABLE IF EXISTS test_one;"))
385385
(msg, _) <- replyOk(msg, raw( """CREATE TABLE test_one (
386386
| id SERIAL,
387387
| name VARCHAR(255),

0 commit comments

Comments
 (0)