Skip to content

Commit

Permalink
resolve bug when using eager loading
Browse files Browse the repository at this point in the history
  • Loading branch information
colby-swandale committed Oct 10, 2024
1 parent 5d85d79 commit 8349f56
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,13 @@ class ActiveSupport::TestCase
parallelize(workers: :number_of_processors)

parallelize_setup do |worker|
Version.reset_column_information # TODO: Remove once https://github.com/rails/rails/pull/52703 is released

SemanticLogger.reopen
Searchkick.index_suffix = "_#{worker}"
Searchkick.index_suffix = worker

Rubygem.reindex
Rubygem.disable_callbacks
end

setup do
Expand All @@ -97,9 +102,6 @@ class ActiveSupport::TestCase
Unpwn.offline = true
OmniAuth.config.mock_auth.clear

Rubygem.reindex
Searchkick.disable_callbacks

@launch_darkly = LaunchDarkly::Integrations::TestData.data_source
config = LaunchDarkly::Config.new(data_source: @launch_darkly, send_events: false)
Rails.configuration.launch_darkly_client = LaunchDarkly::LDClient.new("", config)
Expand Down

0 comments on commit 8349f56

Please sign in to comment.