Skip to content

Commit

Permalink
Try to work around job stats test race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain committed Oct 4, 2023
1 parent 9edfe0d commit df08754
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/logical/job_stats_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class JobStatsTest < ActiveSupport::TestCase
[submission1, submission2, submission3].each { |submission| CreateSubmissionFileJob.perform_later(submission, {}) }
[file1, file2, file3, file4, file5].each { |file| E6IqdbQueryJob.perform_later(file) }

# There seems to be some race condition issue here (CI)
sleep 0.25

stats = JobStats.new

assert_equal({ url1.id => 1, url2.id => 1 }, stats.scraping_queued)
Expand Down

0 comments on commit df08754

Please sign in to comment.