1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 21:29:38 +02:00

Fix parallel testing segfaults on M1 macs

This commit is contained in:
Zach Gollwitzer 2024-05-08 08:17:46 -04:00
parent ee433ed7c8
commit 38d50fbb1e

View file

@ -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"