Skip to content

Commit

Permalink
Update spec/support/dummy_app/config/initializers/trigger_pg_exceptio…
Browse files Browse the repository at this point in the history
…n_middleware.rb

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
  • Loading branch information
Flink and CvX committed May 16, 2023
1 parent f31c629 commit b34b47e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def initialize(app)
def call(env)
if env["REQUEST_PATH"] == "/trigger-middleware-pg-exception"
RailsFailover::ActiveRecord.on_failover do |role|
Post.create(body: "triggered_from_pg_exception:#{role}")
Post.create!(body: "triggered_from_pg_exception:#{role}")
end
raise ::PG::UnableToSend
else
Expand Down

0 comments on commit b34b47e

Please sign in to comment.