Skip to content

Commit

Permalink
Ensure REDIS_TEST_URL is set
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacall committed Jun 19, 2023
1 parent 2f3f4cf commit 2d0c4e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ SOLR_URL=http://solr:8983/solr/tess

# REDIS (redis is the docker container name)
REDIS_URL=redis://redis:6379/1
REDIS_TEST_URL: redis://redis:6379/0
2 changes: 1 addition & 1 deletion test/unit/config_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ConfigTest < ActiveSupport::TestCase
end

test 'redis URL should be set' do
exp = if ENV['REDIS_TEST_URL'].present? # Used in CI
exp = if ENV['REDIS_TEST_URL'].present? # Used in docker/CI
ENV['REDIS_TEST_URL']
else
'redis://localhost:6379/0'
Expand Down

0 comments on commit 2d0c4e9

Please sign in to comment.