File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
a2a-client/src/jvmTest/kotlin/ai/koog/a2a/client
a2a-server/src/jvmTest/kotlin/ai/koog/a2a/server Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ import org.junit.jupiter.api.BeforeAll
1111import org.junit.jupiter.api.TestInstance
1212import org.junit.jupiter.api.condition.EnabledOnOs
1313import org.junit.jupiter.api.condition.OS
14+ import org.junit.jupiter.api.parallel.Execution
15+ import org.junit.jupiter.api.parallel.ExecutionMode
1416import org.testcontainers.containers.GenericContainer
1517import org.testcontainers.containers.wait.strategy.Wait
1618import org.testcontainers.junit.jupiter.Container
@@ -25,6 +27,7 @@ import kotlin.time.Duration.Companion.minutes
2527@TestInstance(TestInstance .Lifecycle .PER_CLASS )
2628@Testcontainers
2729@EnabledOnOs(OS .LINUX )
30+ @Execution(ExecutionMode .SAME_THREAD , reason = " Working with the same instance of test server." )
2831class A2AClientJsonRpcIntegrationTest : BaseA2AProtocolTest () {
2932 companion object {
3033 @Container
@@ -34,7 +37,7 @@ class A2AClientJsonRpcIntegrationTest : BaseA2AProtocolTest() {
3437 .waitingFor(Wait .forListeningPort())
3538 }
3639
37- override val testTimeout = 2 .minutes
40+ override val testTimeout = 1 .minutes
3841
3942 private val httpClient = HttpClient {
4043 install(Logging ) {
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ import kotlinx.coroutines.withContext
4545import org.junit.jupiter.api.AfterAll
4646import org.junit.jupiter.api.BeforeAll
4747import org.junit.jupiter.api.TestInstance
48+ import org.junit.jupiter.api.parallel.Execution
49+ import org.junit.jupiter.api.parallel.ExecutionMode
4850import java.net.ServerSocket
4951import kotlin.test.BeforeTest
5052import kotlin.test.Test
@@ -59,6 +61,7 @@ import kotlin.uuid.Uuid
5961 */
6062@OptIn(ExperimentalUuidApi ::class )
6163@TestInstance(TestInstance .Lifecycle .PER_CLASS )
64+ @Execution(ExecutionMode .SAME_THREAD , reason = " Working with the same instance of test server." )
6265class A2AServerJsonRpcIntegrationTest : BaseA2AProtocolTest () {
6366 override val testTimeout = 2 .minutes
6467
You can’t perform that action at this time.
0 commit comments