Skip to content

Conversation

@MikeMcQuaid
Copy link
Member

Copilot AI review requested due to automatic review settings November 18, 2025 09:23
Copilot finished reviewing on behalf of MikeMcQuaid November 18, 2025 09:24
Need to reset this so doubles don't escape.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a flaky test in the bundle/commands/install_spec by ensuring the CaskDumper module state is properly reset between test runs. The changes prevent test doubles from leaking between tests, which was causing intermittent test failures.

Key Changes

  • Added require "bundle/cask_dumper" import to enable access to the CaskDumper module
  • Added a before block that calls Homebrew::Bundle::CaskDumper.reset! to clear memoized state before each test in the "when a Brewfile is found" context

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Nov 18, 2025
Merged via the queue into main with commit 001e922 Nov 18, 2025
37 checks passed
@MikeMcQuaid MikeMcQuaid deleted the fix_flaky_test branch November 18, 2025 10:18
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.

3 participants