zkoss / zkspringboot

ZK - Spring Boot integration
Apache License 2.0
53 stars 56 forks source link

connection exception: closed when run multiple zats test #6

Closed sesong11 closed 6 years ago

sesong11 commented 6 years ago

I write two zats test, each of them has AutoEvironment, when I run one by one they success. but when I run them together, the second zats test not success, with error.

Caused by: org.hsqldb.HsqlException: connection exception: closed
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.Session.execute(Unknown Source)

my source code: https://github.com/sesong11/zboot

sesong11 commented 6 years ago

I found solution by add these to application.properties spring.jpa.generate-ddl=true spring.datasource.generate-unique-name=true spring.jmx.enabled=false