Skip to content

Commit

Permalink
Fix tests: when no scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
jlledom committed May 16, 2024
1 parent 9f85a48 commit de82ec2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions test/unit/storage_async_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,8 @@ def test_sentinels_empty
end

def test_redis_no_scheme
assert_nothing_raised do
StorageAsync::Client.send :new, url('backend-redis:6379')
end
storage = StorageAsync::Client.send :new, url('backend-redis')
assert_client_config(storage, url: URI('redis://backend-redis:6379'))
end

private
Expand Down
5 changes: 2 additions & 3 deletions test/unit/storage_sync_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ def test_redis_unknown_scheme
end

def test_redis_url_without_scheme
assert_nothing_raised do
StorageSync.send :new, url('backend-redis:6379')
end
storage = StorageSync.send :new, url('backend-redis')
assert_client_config(storage, url: URI('redis://backend-redis:6379'))
end

def test_sentinels_connection_string
Expand Down

0 comments on commit de82ec2

Please sign in to comment.