diff --git a/build.sc b/build.sc index f4198429..2385aecb 100644 --- a/build.sc +++ b/build.sc @@ -315,6 +315,13 @@ object c3p0 extends RootModule with JavaModule with PublishModule { ) ) } + // just to give ourselves the command `$ mill -i test.scalamod.console` + object scalamod extends ScalaModule { + override def moduleDeps = Seq(c3p0.test) + override def scalaVersion = "3.3.1" + override def runClasspath = T{ c3p0.test.runClasspath() } + override def forkArgs = T { c3p0.test.forkArgs() } + } } override def pomSettings = T { diff --git a/test/resources-local/c3p0.properties b/test/resources-local/c3p0.properties index a21bb2bb..2be4a7af 100644 --- a/test/resources-local/c3p0.properties +++ b/test/resources-local/c3p0.properties @@ -1,7 +1,8 @@ c3p0.testConnectionOnCheckout=true #c3p0.testConnectionOnCheckin=true #c3p0.dataSourceName=poop -#c3p0.minPoolSize=10 +#c3p0.initialPoolSize=10 +#c3p0.minPoolSize=0 #c3p0.maxPoolSize=40 #c3p0.checkoutTimeout=2000 #c3p0.connectionIsValidTimeout=5 @@ -9,7 +10,7 @@ c3p0.testConnectionOnCheckout=true #c3p0.idleConnectionTestPeriod=1 #c3p0.maxConnectionAge=10 #c3p0.maxIdleTime=2 -#c3p0.maxIdleTimeExcessConnections=1 +#c3p0.maxIdleTimeExcessConnections=60 #c3p0.propertyCycle=1 #c3p0.numHelperThreads=10 #c3p0.unreturnedConnectionTimeout=15 @@ -38,7 +39,7 @@ c3p0.testConnectionOnCheckout=true #c3p0.taskRunnerFactoryClassName=com.mchange.v2.c3p0.FixedThreadPoolExecutorTaskRunnerFactory #c3p0.taskRunnerFactoryClassName=com.mchange.v2.c3p0.loom.VirtualThreadPerTaskExecutorTaskRunnerFactory -#c3p0.jdbcUrl= +#c3p0.jdbcUrl=jdbc:postgresql://localhost:5432/c3p0 #c3p0.driverClass= #c3p0.user= #c3p0.password=