Skip to content

Commit

Permalink
Revert to port 8080 to get tests to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
djfarrelly committed Jul 18, 2024
1 parent ddcc274 commit 29bf12f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
server:
port: 8090
port: 8080
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29bf12f

Please sign in to comment.