mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Clean up new healthcheck test
This commit is contained in:
parent
badeea3e0b
commit
973a18b1b8
1 changed files with 3 additions and 2 deletions
|
@ -910,12 +910,13 @@ public class WLGitBridgeIntegrationTest {
|
|||
});
|
||||
wlgb.run();
|
||||
HttpClient client = HttpClients.createDefault();
|
||||
String urlBase = "http://127.0.0.1:" + gitBridgePort;
|
||||
// Status
|
||||
HttpGet statusRequest = new HttpGet("http://127.0.0.1:"+gitBridgePort+"/api/status");
|
||||
HttpGet statusRequest = new HttpGet(urlBase+"/api/status");
|
||||
HttpResponse statusResponse = client.execute(statusRequest);
|
||||
assertEquals(statusResponse.getStatusLine().getStatusCode(), 200);
|
||||
// Health Check
|
||||
HttpGet healthCheckRequest = new HttpGet("http://127.0.0.1:"+gitBridgePort+"/api/health_check");
|
||||
HttpGet healthCheckRequest = new HttpGet(urlBase+"/api/health_check");
|
||||
HttpResponse healthCheckResponse = client.execute(healthCheckRequest);
|
||||
assertEquals(healthCheckResponse.getStatusLine().getStatusCode(), 200);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue