Own-and-Ship / oas_agent

The Own & Ship Ruby agent
2 stars 0 forks source link

Rescue from Net::OpenTimeout when connecting #2

Closed caius closed 1 year ago

caius commented 1 year ago

This has been observed as a failure when the agent is trying to make a connection and fails to open the connection, from both CI and dev machines. Add it to the existing rescue mechanism for connection setup.

An error occurred while loading spec_helper.
Failure/Error: require File.expand_path("../config/environment", __dir__)

Net::OpenTimeout:
  Failed to open TCP connection to ownandship.io:443 (execution expired)
# ./config/initializers/read_only_db.rb:3:in `<main>'
# ./config/environment.rb:7:in `<top (required)>'
# ./spec/rails_helper.rb:6:in `<top (required)>'
# ./spec/spec_helper.rb:5:in `<top (required)>'
No examples found.

Fixes #1