Skip to content

Commit

Permalink
Merge pull request #8140 from dependabot/deivid-rodriguez/fix-flakies
Browse files Browse the repository at this point in the history
Fix some flaky test failures
  • Loading branch information
deivid-rodriguez authored Oct 4, 2023
2 parents 81ca7cb + 88fcab7 commit 00fe12a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions updater/spec/dependabot/file_fetcher_command_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
JSON.parse(fixture("jobs/job_with_credentials.json"))
end

after do
# The job definition in this context loads an experiment, so reset it
Dependabot::Experiments.reset!
end

it "fetches the files and writes the fetched files to output.json", vcr: true do
expect(api_client).not_to receive(:mark_job_as_processed)

Expand Down
4 changes: 3 additions & 1 deletion updater/spec/fixtures/bundler_vendored/original/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ GEM
dummy-pkg-a (~> 2.0)

PLATFORMS
x86_64-darwin-22
aarch64-linux
x86_64-darwin
x86_64-linux

DEPENDENCIES
dummy-git-dependency!
Expand Down
3 changes: 2 additions & 1 deletion updater/spec/fixtures/bundler_vendored/updated/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ GEM
dummy-pkg-a (~> 2.0)

PLATFORMS
x86_64-darwin-22
aarch64-linux
x86_64-darwin
x86_64-linux

DEPENDENCIES
Expand Down

0 comments on commit 00fe12a

Please sign in to comment.