Skip to content

Commit

Permalink
Fix flaky test failures
Browse files Browse the repository at this point in the history
Recently the job JSON file was changed to include an experiment, so
needs to be reset.
  • Loading branch information
deivid-rodriguez committed Oct 4, 2023
1 parent 7f27913 commit 88fcab7
Showing 1 changed file with 5 additions and 0 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

0 comments on commit 88fcab7

Please sign in to comment.