noloman
noloman

Reputation: 11965

CI failing with RSpec and Elasticsearch

we have a rails app and have semaphoreCI running our specs. In our local machines, all of the specs are passing without any problem at all.

However, we are getting all our specs failing, with failures such as the following:

Failures:

  1) HousesController GET #index 
     Got 0 failures and 2 other errors:

     1.1) Failure/Error: Address.reindex

          Faraday::ConnectionFailed:
            Failed to open TCP connection to localhost:9200 (Connection refused - connect(2) for "localhost" port 9200)

We have been researching and we have found https://semaphoreci.com/docs/elasticsearch.html, meaning that it is already configured so elasticsearch runs automatically.

Could it be a solution to change the default port semaphoreCI uses? How can we do that, if this is the case?

Thanks a lot in advance!

Upvotes: 0

Views: 384

Answers (0)

Related Questions