From 29bf12f06d3f687ef33e5c558485655208c4ec55 Mon Sep 17 00:00:00 2001 From: Dan Farrelly Date: Wed, 17 Jul 2024 20:34:47 -0700 Subject: [PATCH] Revert to port 8080 to get tests to pass --- .../java/com/inngest/springbootdemo/DevServerComponent.java | 2 +- inngest-spring-boot-demo/src/main/resources/application.yml | 2 +- .../java/com/inngest/springbootdemo/DemoControllerTest.java | 4 ++-- .../springbootdemo/SpringBootDemoApplicationTests.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inngest-spring-boot-demo/src/main/java/com/inngest/springbootdemo/DevServerComponent.java b/inngest-spring-boot-demo/src/main/java/com/inngest/springbootdemo/DevServerComponent.java index 77ed9d67..f4c2b700 100644 --- a/inngest-spring-boot-demo/src/main/java/com/inngest/springbootdemo/DevServerComponent.java +++ b/inngest-spring-boot-demo/src/main/java/com/inngest/springbootdemo/DevServerComponent.java @@ -17,7 +17,7 @@ public class DevServerComponent { DevServerComponent() throws Exception { Runtime rt = Runtime.getRuntime(); rt.exec("pkill inngest-cli"); - rt.exec("npx -y inngest-cli dev -u http://127.0.0.1:8090/api/inngest"); + rt.exec("npx -y inngest-cli dev -u http://127.0.0.1:8080/api/inngest"); waitForStartup(); } diff --git a/inngest-spring-boot-demo/src/main/resources/application.yml b/inngest-spring-boot-demo/src/main/resources/application.yml index ac5756ac..a7afc92b 100644 --- a/inngest-spring-boot-demo/src/main/resources/application.yml +++ b/inngest-spring-boot-demo/src/main/resources/application.yml @@ -1,2 +1,2 @@ server: - port: 8090 + port: 8080 diff --git a/inngest-spring-boot-demo/src/test/java/com/inngest/springbootdemo/DemoControllerTest.java b/inngest-spring-boot-demo/src/test/java/com/inngest/springbootdemo/DemoControllerTest.java index 372eaa3a..f187d487 100644 --- a/inngest-spring-boot-demo/src/test/java/com/inngest/springbootdemo/DemoControllerTest.java +++ b/inngest-spring-boot-demo/src/test/java/com/inngest/springbootdemo/DemoControllerTest.java @@ -19,12 +19,12 @@ public class DemoControllerTest { @Test public void shouldReturnSyncPayload() throws Exception { - mockMvc.perform(get("/api/inngest").header("Host", "localhost:8090")) + mockMvc.perform(get("/api/inngest").header("Host", "localhost:8080")) .andExpect(status().isOk()) .andExpect(content().contentType("application/json")) .andExpect(header().string(InngestHeaderKey.Framework.getValue(), "springboot")) .andExpect(jsonPath("$.appName").value("spring_test_demo")) - .andExpect(jsonPath("$.url").value("http://localhost:8090/api/inngest")) + .andExpect(jsonPath("$.url").value("http://localhost:8080/api/inngest")) .andExpect(jsonPath("$.sdk").value("inngest-kt")); } } diff --git a/inngest-spring-boot-demo/src/test/java/com/inngest/springbootdemo/SpringBootDemoApplicationTests.java b/inngest-spring-boot-demo/src/test/java/com/inngest/springbootdemo/SpringBootDemoApplicationTests.java index 93cb8d29..b63afa2a 100644 --- a/inngest-spring-boot-demo/src/test/java/com/inngest/springbootdemo/SpringBootDemoApplicationTests.java +++ b/inngest-spring-boot-demo/src/test/java/com/inngest/springbootdemo/SpringBootDemoApplicationTests.java @@ -21,7 +21,7 @@ @AutoConfigureMockMvc @Execution(ExecutionMode.CONCURRENT) class SpringBootDemoApplicationIntegrationTest { - @Value("${TEST_URL:http://localhost:8090}") + @Value("${TEST_URL:http://localhost:8080}") private String testUrl; @Autowired