From 91e1400af228b9ec53c80502e9d138974f9323da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cv=5Fkkhuang=E2=80=9D?= <“420895376@qq.com”> Date: Fri, 27 Sep 2024 17:33:40 +0800 Subject: [PATCH] Fix unit testing errors --- .../src/test/resources/application.properties | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/linkis-public-enhancements/linkis-cs-server/src/test/resources/application.properties b/linkis-public-enhancements/linkis-cs-server/src/test/resources/application.properties index b9ed613e62..037eca4fb9 100644 --- a/linkis-public-enhancements/linkis-cs-server/src/test/resources/application.properties +++ b/linkis-public-enhancements/linkis-cs-server/src/test/resources/application.properties @@ -30,20 +30,16 @@ wds.linkis.gateway.conf.publicservice.list=query,jobhistory,application,configur #logging.file=./test.log #debug=true +#h2 database config spring.datasource.driver-class-name=org.h2.Driver -spring.datasource.url=jdbc:h2:mem:test;MODE=MySQL;DB_CLOSE_DELAY=-1;DATABASE_TO_LOWER=true;INIT=runscript from 'classpath:create.sql' +#init +spring.datasource.url=jdbc:h2:mem:test;MODE=MySQL;DB_CLOSE_DELAY=-1;DATABASE_TO_LOWER=true spring.datasource.username=sa spring.datasource.password= -spring.datasource.hikari.connection-test-query=select 1 -spring.datasource.hikari.minimum-idle=5 -spring.datasource.hikari.auto-commit=true -spring.datasource.hikari.validation-timeout=3000 -spring.datasource.hikari.pool-name=linkis-test -spring.datasource.hikari.maximum-pool-size=50 -spring.datasource.hikari.connection-timeout=30000 -spring.datasource.hikari.idle-timeout=600000 -spring.datasource.hikari.leak-detection-threshold=0 -spring.datasource.hikari.initialization-fail-timeout=1 +spring.sql.init.schema-locations=classpath:create.sql +springfox.documentation.enabled=false +springfox.documentation.auto-startup=false +springfox.documentation.swagger-ui.enabled=false spring.main.web-application-type=servlet server.port=1234