Fix failed unit tests
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m34s

This commit is contained in:
Braydon 2024-04-13 13:27:47 -04:00
parent 3f1290fd07
commit 348f7fa1eb

@ -67,7 +67,7 @@ public final class ServerControllerTests {
.accept(MediaType.APPLICATION_JSON) // Accept JSON
.contentType(MediaType.APPLICATION_JSON) // Content type is JSON
).andExpect(status().isOk()) // Expect 200 (OK)
.andExpect(jsonPath("$.value.hostname") // Expect the server's resolved hostname
.andExpect(jsonPath("$.hostname") // Expect the server's resolved hostname
.value("mc.hypixel.net")
).andReturn();
}
@ -84,7 +84,7 @@ public final class ServerControllerTests {
.accept(MediaType.APPLICATION_JSON) // Accept JSON
.contentType(MediaType.APPLICATION_JSON) // Content type is JSON
).andExpect(status().isOk()) // Expect 200 (OK)
.andExpect(jsonPath("$.value.hostname") // Expect the server's resolved hostname
.andExpect(jsonPath("$.hostname") // Expect the server's resolved hostname
.value("wildprison.bedrock.minehut.gg")
).andReturn();
}