From 5970a3a171a981b40e79391278a0106929385bcd Mon Sep 17 00:00:00 2001 From: Soby Chacko Date: Fri, 28 Mar 2025 16:00:29 -0400 Subject: [PATCH] Change test port to non-default (8990 -> 8991) in schema registry server test This helps with running tests in parallel (for example, when using mvnd) Signed-off-by: Soby Chacko --- .../schema/registry/server/SchemaRegistryServerAvroTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schema-registry/spring-cloud-stream-schema-registry-server/src/test/java/org/springframework/cloud/stream/schema/registry/server/SchemaRegistryServerAvroTests.java b/schema-registry/spring-cloud-stream-schema-registry-server/src/test/java/org/springframework/cloud/stream/schema/registry/server/SchemaRegistryServerAvroTests.java index 2af07713a..4d466d638 100644 --- a/schema-registry/spring-cloud-stream-schema-registry-server/src/test/java/org/springframework/cloud/stream/schema/registry/server/SchemaRegistryServerAvroTests.java +++ b/schema-registry/spring-cloud-stream-schema-registry-server/src/test/java/org/springframework/cloud/stream/schema/registry/server/SchemaRegistryServerAvroTests.java @@ -69,7 +69,7 @@ import static org.springframework.test.annotation.DirtiesContext.ClassMode.AFTER * @author Christian Tzolov * @author Soby Chacko */ -@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT, properties = "spring.main.allow-bean-definition-overriding=true") +@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT, properties = {"spring.main.allow-bean-definition-overriding=true", "server.port=8991"}) @DirtiesContext(classMode = AFTER_EACH_TEST_METHOD) class SchemaRegistryServerAvroTests { @@ -246,7 +246,7 @@ class SchemaRegistryServerAvroTests { //@Test(expected = HttpClientErrorException.NotFound.class) public void testSchemaNotfound() { - this.client.getForEntity("http://localhost:8990/foo/avro/v42", Schema.class); + this.client.getForEntity("http://localhost:8991/foo/avro/v42", Schema.class); } @Test