File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
src/test/kotlin/org/pkl/server Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,3 @@ testNative {
108108 }
109109}
110110
111- tasks.withType(Test ::class ).configureEach {
112- // Disable multi-JDK testing for pkl-server.
113- enabled = ! name.lowercase().contains(" jdk" )
114- }
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import kotlin.io.path.outputStream
2525import kotlin.io.path.writeText
2626import org.assertj.core.api.Assertions.assertThat
2727import org.junit.jupiter.api.AfterAll
28+ import org.junit.jupiter.api.BeforeAll
2829import org.junit.jupiter.api.Disabled
2930import org.junit.jupiter.api.Test
3031import org.junit.jupiter.api.io.TempDir
@@ -38,13 +39,18 @@ abstract class AbstractServerTest {
3839 companion object {
3940 /* * Set to `true` to bypass messagepack serialization when running [JvmServerTest]. */
4041 internal const val USE_DIRECT_TRANSPORT = false
42+ lateinit var executor: ExecutorService
4143
42- val executor: ExecutorService =
43- if (USE_DIRECT_TRANSPORT ) {
44- createDirectExecutor()
45- } else {
46- Executors .newCachedThreadPool()
47- }
44+ @BeforeAll
45+ @JvmStatic
46+ fun beforeAll () {
47+ executor =
48+ if (USE_DIRECT_TRANSPORT ) {
49+ createDirectExecutor()
50+ } else {
51+ Executors .newCachedThreadPool()
52+ }
53+ }
4854
4955 @AfterAll
5056 @JvmStatic
You can’t perform that action at this time.
0 commit comments