Skip to content

Commit

Permalink
remove health query for migration test (#9338)
Browse files Browse the repository at this point in the history
* remove health query for migration test

* fmt
  • Loading branch information
jrhizor authored Jan 6, 2022
1 parent c7021e6 commit ed46b2d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import io.airbyte.api.client.model.ConnectionRead;
import io.airbyte.api.client.model.ConnectionStatus;
import io.airbyte.api.client.model.DestinationDefinitionRead;
import io.airbyte.api.client.model.HealthCheckRead;
import io.airbyte.api.client.model.ImportRead;
import io.airbyte.api.client.model.ImportRead.StatusEnum;
import io.airbyte.api.client.model.SourceDefinitionRead;
Expand Down Expand Up @@ -318,8 +317,7 @@ private static void populateDataForFirstRun() throws ApiException, URISyntaxExce
private static void healthCheck(final ApiClient apiClient) {
final HealthApi healthApi = new HealthApi(apiClient);
try {
final HealthCheckRead healthCheck = healthApi.getHealthCheck();
assertTrue(healthCheck.getAvailable());
healthApi.getHealthCheck();
} catch (final ApiException e) {
throw new RuntimeException("Health check failed, usually due to auto migration failure. Please check the logs for details.");
}
Expand Down

0 comments on commit ed46b2d

Please sign in to comment.