Skip to content

Conversation

@Edouard-chin
Copy link
Contributor

What was the end-user or developer problem that led to this PR?

Some tests are leaky and it makes the work I'm doing in #9210 not possible.

What is your fix for the problem, implemented in this PR?

While working on #9210, I found those leaky tests which break the test suite. They remove Bundler constants without setting them back.

def self.reset
@events.each_value do |const|
remove_const(const)
end

The reason it's not a problem on master is because there are no tests that install gems in the same process (all tests shell out to bundle install).
In #9210 I install gems using the Bundler API instead of shelling out (its much faster), and this also needs to be fixed if we want to achieve #9195

Make sure the following tasks are checked

- While working on ruby#9210, I found those leaky tests which break
  the test suite.
  They remove Bundler constants without setting them back.

  The reason it's not a problem on master is because there are no
  tests that install gems in the same process (all tests shell out
  to `bundle install`).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant