From 1fd9cbc83e03f65c0952b10f40afc50c91da4e98 Mon Sep 17 00:00:00 2001 From: HoneyryderChuck Date: Sun, 13 Feb 2022 15:02:54 +0000 Subject: [PATCH] tests: disable auto-compaction for mimemagic-related tests mimemagic seems to corrupt memory under auto-compaction, so disabling it until it's fixed. https://github.com/mimemagicrb/mimemagic/issues/166 --- test/test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 013b3af2..3309e308 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -GC.auto_compact = true if GC.respond_to?(:auto_compact=) +GC.auto_compact = true if !defined?(MimeMagic) && GC.respond_to?(:auto_compact=) # https://github.com/mimemagicrb/mimemagic/issues/166 if ENV.key?("CI") require "simplecov"