From 38d50fbb1e201825fedd49cf60248ec1c04bf29a Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Wed, 8 May 2024 08:17:46 -0400 Subject: [PATCH] Fix parallel testing segfaults on M1 macs --- test/test_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_helper.rb b/test/test_helper.rb index 1400acce..0f5895dd 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -5,6 +5,10 @@ ENV["SELF_HOSTING_ENABLED"] = "false" 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"