Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a note to the README that PostgreSQL is required to run the tests. #188

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

willnet
Copy link
Collaborator

@willnet willnet commented Jan 16, 2025

As described in the README, running the tests resulted in the following error. After starting PostgreSQL locally, the tests ran as expected, so I updated the README to mention that PostgreSQL is required.

An error occurred while loading ./spec/activerecord-bitemporal/association_spec.rb.
Failure/Error: connection = ActiveRecord::Base.connection

ActiveRecord::ConnectionNotEstablished:
  connection to server at "::1", port 5432 failed: Connection refused
  	Is the server running on that host and accepting TCP/IP connections?
  connection to server at "127.0.0.1", port 5432 failed: Connection refused
  	Is the server running on that host and accepting TCP/IP connections?
# ./spec/spec_helper.rb:20:in 'block in <top (required)>'
# ./spec/spec_helper.rb:12:in '<top (required)>'
# ./spec/activerecord-bitemporal/association_spec.rb:3:in '<top (required)>'
# ------------------
# --- Caused by: ---
# PG::ConnectionBad:
#   connection to server at "::1", port 5432 failed: Connection refused
#   	Is the server running on that host and accepting TCP/IP connections?
#   connection to server at "127.0.0.1", port 5432 failed: Connection refused
#   	Is the server running on that host and accepting TCP/IP connections?
#   ./spec/spec_helper.rb:20:in 'block in <top (required)>'

As described in the README, running the tests resulted in the following error. After starting PostgreSQL locally, the tests ran as expected, so I updated the README to mention that PostgreSQL is required.

```
An error occurred while loading ./spec/activerecord-bitemporal/association_spec.rb.
Failure/Error: connection = ActiveRecord::Base.connection

ActiveRecord::ConnectionNotEstablished:
  connection to server at "::1", port 5432 failed: Connection refused
  	Is the server running on that host and accepting TCP/IP connections?
  connection to server at "127.0.0.1", port 5432 failed: Connection refused
  	Is the server running on that host and accepting TCP/IP connections?
# ./spec/spec_helper.rb:20:in 'block in <top (required)>'
# ./spec/spec_helper.rb:12:in '<top (required)>'
# ./spec/activerecord-bitemporal/association_spec.rb:3:in '<top (required)>'
# ------------------
# --- Caused by: ---
# PG::ConnectionBad:
#   connection to server at "::1", port 5432 failed: Connection refused
#   	Is the server running on that host and accepting TCP/IP connections?
#   connection to server at "127.0.0.1", port 5432 failed: Connection refused
#   	Is the server running on that host and accepting TCP/IP connections?
#   ./spec/spec_helper.rb:20:in 'block in <top (required)>'
```
@auto-assign auto-assign bot requested review from krororo and lighty January 16, 2025 10:01
Copy link
Collaborator

@krororo krororo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@krororo krororo merged commit 4313932 into master Jan 16, 2025
4 of 10 checks passed
@willnet willnet deleted the willnet-patch-1 branch January 23, 2025 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants