Skip to content

Commit

Permalink
Fix parallel testing segfaults on M1 macs
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgoll committed May 8, 2024
1 parent ee433ed commit 38d50fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
ENV["UPGRADES_ENABLED"] = "false"
ENV["RAILS_ENV"] ||= "test"

# Fixes Segfaults on M1 Macs when running tests in parallel (temporary workaround)
# https://github.com/ged/ruby-pg/issues/538#issuecomment-1591629049
ENV["PGGSSENCMODE"] = "disable"

require_relative "../config/environment"
require "rails/test_help"
require "minitest/mock"
Expand Down

0 comments on commit 38d50fb

Please sign in to comment.