Use cannonical form of library names

This commit is contained in:
Aashish Saini 2023-10-30 17:16:17 +05:30 committed by Jonathan Hefner
parent 4425ba2017
commit d8b3c557e9
9 changed files with 9 additions and 9 deletions

@ -8,7 +8,7 @@ def setup
config.logger = Rails.logger
end
unless can_run?
puts "Cannot run integration tests for backburner. To be able to run integration tests for backburner you need to install and start beanstalkd.\n"
puts "Cannot run integration tests for Backburner. To be able to run integration tests for Backburner you need to install and start beanstalkd.\n"
status = ENV["BUILDKITE"] ? false : true
exit status
end

@ -40,7 +40,7 @@ def start_workers
end
rescue PG::ConnectionBad
puts "Cannot run integration tests for queue_classic. To be able to run integration tests for queue_classic you need to install and start postgresql.\n"
puts "Cannot run integration tests for QueueClassic. To be able to run integration tests for QueueClassic you need to install and start PostgreSQL.\n"
status = ENV["BUILDKITE"] ? false : true
exit status
end

@ -6,7 +6,7 @@ def setup
Resque.redis = Redis::Namespace.new "active_jobs_int_test", redis: Redis.new(url: ENV["REDIS_URL"] || "redis://127.0.0.1:6379/12")
Resque.logger = Rails.logger
unless can_run?
puts "Cannot run integration tests for resque. To be able to run integration tests for resque you need to install and start redis.\n"
puts "Cannot run integration tests for Resque. To be able to run integration tests for Resque you need to install and start Redis.\n"
status = ENV["BUILDKITE"] ? false : true
exit status
end

@ -9,7 +9,7 @@ module SidekiqJobsManager
def setup
ActiveJob::Base.queue_adapter = :sidekiq
unless can_run?
puts "Cannot run integration tests for sidekiq. To be able to run integration tests for sidekiq you need to install and start redis.\n"
puts "Cannot run integration tests for Sidekiq. To be able to run integration tests for Sidekiq you need to install and start Redis.\n"
status = ENV["BUILDKITE"] ? false : true
exit status
end

@ -17,7 +17,7 @@ def setup
pid_path: Rails.root.join("tmp/sneakers.pid").to_s,
log: Rails.root.join("log/sneakers.log").to_s
unless can_run?
puts "Cannot run integration tests for sneakers. To be able to run integration tests for sneakers you need to install and start rabbitmq.\n"
puts "Cannot run integration tests for Sneakers. To be able to run integration tests for Sneakers you need to install and start RabbitMQ.\n"
status = ENV["BUILDKITE"] ? false : true
exit status
end

@ -212,7 +212,7 @@ def replace_bind_variable(value, c = connection)
def replace_named_bind_variables(statement, bind_vars)
statement.gsub(/([:\\]?):([a-zA-Z]\w*)/) do |match|
if $1 == ":" # skip postgresql casts
if $1 == ":" # skip PostgreSQL casts
match # return the whole match
elsif $1 == "\\" # escaped literal colon
match[1..-1] # return match with escaping backlash char removed

@ -122,7 +122,7 @@ def test_schema_dump_includes_limit_constraint_for_integer_columns
assert_match %r{c_int_1.*limit: 2}, output
assert_match %r{c_int_2.*limit: 2}, output
# int 3 is 4 bytes in postgresql
# int 3 is 4 bytes in PostgreSQL
assert_match %r{"c_int_3"(?!.*limit)}, output
assert_match %r{"c_int_4"(?!.*limit)}, output
elsif current_adapter?(:Mysql2Adapter, :TrilogyAdapter)

@ -135,7 +135,7 @@ def build(**kwargs)
class StoreTest < ActiveSupport::TestCase
setup do
@cache = nil
skip "redis server is not up" unless REDIS_UP
skip "Redis server is not up" unless REDIS_UP
@namespace = "test-#{SecureRandom.hex}"
@cache = lookup_store(expires_in: 60)

@ -24,7 +24,7 @@ module Rails
# The health check will now be accessible via the +/healthz+ path.
#
# NOTE: This endpoint does not reflect the status of all of your application's
# dependencies, such as the database or redis cluster. Replace
# dependencies, such as the database or Redis cluster. Replace
# <tt>"rails/health#show"</tt> with your own controller action if you have
# application specific needs.
#