Fix broken server port test yes
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m27s
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m27s
This commit is contained in:
@ -128,7 +128,7 @@ public final class ServerControllerTests {
|
||||
*/
|
||||
@Test
|
||||
void ensureUnknownPort() throws Exception {
|
||||
mockMvc.perform(get("/server/java/hypixel.net?port=A")
|
||||
mockMvc.perform(get("/server/java/hypixel.net:A")
|
||||
.accept(MediaType.APPLICATION_JSON) // Accept JSON
|
||||
.contentType(MediaType.APPLICATION_JSON) // Content type is JSON
|
||||
).andExpect(status().isBadRequest()) // Expect 400 (Bad Request)
|
||||
|
Reference in New Issue
Block a user